Skip to content

Commit 7871af0

Browse files
authored
Merge pull request #86 from NETWAYS/pin-lint
Pin golangci-lint version
2 parents ff7cfe3 + dfdddc0 commit 7871af0

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ jobs:
1616

1717
- name: golangci-lint
1818
uses: golangci/golangci-lint-action@v2
19+
with:
20+
version: v1.51

.golangci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
run:
2-
deadline: 1m
2+
timeout: 5m
3+
skip-files:
4+
- '(.+)_test\.go'
35

46
linters:
57
disable-all: false
68
enable:
79
- funlen
810
- dogsled
911
- dupl
10-
# - lll
1112
- whitespace
1213
- wsl
1314
- exportloopref
1415
disable:
1516
- scopelint
17+
- bodyclose
18+
- contextcheck
19+
- nilerr
20+
- noctx
21+
- rowserrcheck
22+
- sqlclosecheck
23+
- structcheck
24+
- unparam
25+
- musttag
1626
presets:
1727
- bugs
1828
- unused
19-
# - style
2029
fast: false

0 commit comments

Comments
 (0)