Skip to content

Commit a950451

Browse files
ci(lint): Migrate linter config to new version
1 parent cc8cafe commit a950451

1 file changed

Lines changed: 80 additions & 62 deletions

File tree

.golangci.yml

Lines changed: 80 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1+
version: "2"
12
linters:
23
enable:
3-
- govet
4-
- staticcheck
5-
- revive
6-
- gofmt
7-
- gocritic
8-
- lll
9-
- misspell
10-
- mnd
11-
- musttag
12-
- nilnil
13-
- nlreturn
14-
- tagliatelle
15-
- stylecheck
16-
- sqlclosecheck
17-
- asciicheck
184
- asasalint
5+
- asciicheck
196
- bidichk
207
- bodyclose
218
- canonicalheader
@@ -30,20 +17,25 @@ linters:
3017
- exhaustive
3118
- exptostd
3219
- forcetypeassert
33-
- whitespace
3420
- ginkgolinter
3521
- goconst
36-
- gofumpt
22+
- gocritic
3723
- goheader
38-
- goimports
3924
- gomoddirectives
4025
- goprintffuncname
4126
- gosmopolitan
4227
- grouper
4328
- iface
4429
- importas
30+
- intrange
31+
- lll
4532
- mirror
33+
- misspell
34+
- mnd
35+
- musttag
4636
- nakedret
37+
- nilnil
38+
- nlreturn
4739
- noctx
4840
- nosprintfhostport
4941
- perfsprint
@@ -53,52 +45,78 @@ linters:
5345
- protogetter
5446
- reassign
5547
- recvcheck
48+
- revive
5649
- rowserrcheck
50+
- sqlclosecheck
51+
- staticcheck
52+
- tagliatelle
5753
- unconvert
5854
- wastedassign
55+
- whitespace
5956
- wrapcheck
6057
- wsl
61-
- intrange
62-
linters-settings:
63-
govet:
64-
enable:
65-
- appends
66-
- asmdecl
67-
- assign
68-
- atomic
69-
- atomicalign
70-
- bools
71-
- buildtag
72-
- cgocall
73-
- composites
74-
- copylocks
75-
- deepequalerrors
76-
- defers
77-
- directive
78-
- errorsas
79-
- findcall
80-
- framepointer
81-
- httpresponse
82-
- ifaceassert
83-
- loopclosure
84-
- lostcancel
85-
- nilfunc
86-
- nilness
87-
- printf
88-
- reflectvaluecompare
89-
- shadow
90-
- shift
91-
- sigchanyzer
92-
- slog
93-
- sortslice
94-
- stdmethods
95-
- stringintconv
96-
- structtag
97-
- testinggoroutine
98-
- tests
99-
- timeformat
100-
- unmarshal
101-
- unreachable
102-
- unsafeptr
103-
- unusedresult
104-
- unusedwrite
58+
settings:
59+
govet:
60+
enable:
61+
- appends
62+
- asmdecl
63+
- assign
64+
- atomic
65+
- atomicalign
66+
- bools
67+
- buildtag
68+
- cgocall
69+
- composites
70+
- copylocks
71+
- deepequalerrors
72+
- defers
73+
- directive
74+
- errorsas
75+
- findcall
76+
- framepointer
77+
- httpresponse
78+
- ifaceassert
79+
- loopclosure
80+
- lostcancel
81+
- nilfunc
82+
- nilness
83+
- printf
84+
- reflectvaluecompare
85+
- shadow
86+
- shift
87+
- sigchanyzer
88+
- slog
89+
- sortslice
90+
- stdmethods
91+
- stringintconv
92+
- structtag
93+
- testinggoroutine
94+
- tests
95+
- timeformat
96+
- unmarshal
97+
- unreachable
98+
- unsafeptr
99+
- unusedresult
100+
- unusedwrite
101+
exclusions:
102+
generated: lax
103+
presets:
104+
- comments
105+
- common-false-positives
106+
- legacy
107+
- std-error-handling
108+
paths:
109+
- third_party$
110+
- builtin$
111+
- examples$
112+
formatters:
113+
enable:
114+
- gofmt
115+
- gofumpt
116+
- goimports
117+
exclusions:
118+
generated: lax
119+
paths:
120+
- third_party$
121+
- builtin$
122+
- examples$

0 commit comments

Comments
 (0)