Skip to content

Commit 6be4081

Browse files
committed
Update golangci-lint
1 parent 8cab185 commit 6be4081

1 file changed

Lines changed: 65 additions & 51 deletions

File tree

scripts/.golangci.yml

Lines changed: 65 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,76 @@
1-
# See https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
1+
version: "2"
22
run:
33
tests: true
4-
5-
linters-settings:
6-
errcheck:
7-
check-type-assertions: true
8-
check-blank: true
9-
gocyclo:
10-
min-complexity: 20
11-
dupl:
12-
threshold: 100
13-
misspell:
14-
locale: US
15-
unparam:
16-
check-exported: true
17-
184
linters:
19-
enable-all: true
5+
default: all
206
disable:
21-
- intrange
7+
- wsl_v5
8+
- funcorder
229
- copyloopvar
23-
- lll
24-
- gochecknoglobals
25-
- wrapcheck
26-
- paralleltest
10+
- depguard
11+
- dupword
12+
- errname
13+
- exhaustruct
2714
- forbidigo
2815
- forcetypeassert
29-
- varnamelen
30-
- tagliatelle
31-
- errname
16+
- gochecknoglobals
17+
- intrange
3218
- ireturn
33-
- exhaustruct
19+
- lll
20+
- mnd
3421
- nonamedreturns
35-
- testableexamples
36-
- dupword
37-
- depguard
22+
- paralleltest
23+
- recvcheck
3824
- tagalign
39-
- mnd
25+
- tagliatelle
26+
- testableexamples
4027
- testifylint
41-
- recvcheck
42-
43-
issues:
44-
exclude-use-default: false
45-
exclude-rules:
46-
- linters:
47-
- mnd
48-
- goconst
49-
- noctx
50-
- funlen
51-
- dupl
52-
- unused
53-
- unparam
54-
path: "_test.go"
55-
- linters:
56-
- errcheck # Error checking omitted for brevity.
57-
- gosec
58-
path: "example_"
59-
- linters:
60-
- revive
61-
text: "unused-parameter: parameter"
62-
28+
- varnamelen
29+
- wrapcheck
30+
settings:
31+
dupl:
32+
threshold: 100
33+
errcheck:
34+
check-type-assertions: true
35+
check-blank: true
36+
gocyclo:
37+
min-complexity: 20
38+
misspell:
39+
locale: US
40+
unparam:
41+
check-exported: true
42+
exclusions:
43+
generated: lax
44+
rules:
45+
- linters:
46+
- dupl
47+
- funlen
48+
- goconst
49+
- mnd
50+
- noctx
51+
- unparam
52+
- unused
53+
path: _test.go
54+
- linters:
55+
- errcheck
56+
- gosec
57+
path: example_
58+
- linters:
59+
- revive
60+
text: 'unused-parameter: parameter'
61+
paths:
62+
- third_party$
63+
- builtin$
64+
- examples$
65+
formatters:
66+
enable:
67+
- gci
68+
- gofmt
69+
- gofumpt
70+
- goimports
71+
exclusions:
72+
generated: lax
73+
paths:
74+
- third_party$
75+
- builtin$
76+
- examples$

0 commit comments

Comments
 (0)