Skip to content

Commit 96d1d43

Browse files
committed
chore: re-organize configuration
1 parent 3d66aac commit 96d1d43

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

.golangci.yml

+45-45
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,51 @@
1111
#
1212
# See the file `.golangci.reference.yml` to have a list of all available configuration options.
1313

14+
linters:
15+
disable-all: true
16+
# This list of linters is not a recommendation (same thing for all this configuration file).
17+
# We intentionally use a limited set of linters.
18+
# See the comment on top of this file.
19+
enable:
20+
- bodyclose
21+
- copyloopvar
22+
- depguard
23+
- dogsled
24+
- dupl
25+
- errcheck
26+
- errorlint
27+
- funlen
28+
- gocheckcompilerdirectives
29+
- gochecknoinits
30+
- gochecknoinits
31+
- goconst
32+
- gocritic
33+
- gocyclo
34+
- godox
35+
- gofmt
36+
- goimports
37+
- mnd
38+
- goprintffuncname
39+
- gosec
40+
- gosimple
41+
- govet
42+
- intrange
43+
- ineffassign
44+
- lll
45+
- misspell
46+
- nakedret
47+
- noctx
48+
- nolintlint
49+
- revive
50+
- staticcheck
51+
- stylecheck
52+
- testifylint
53+
- unconvert
54+
- unparam
55+
- unused
56+
- whitespace
57+
58+
1459
linters-settings:
1560
depguard:
1661
rules:
@@ -102,51 +147,6 @@ linters-settings:
102147
- name: unused-parameter
103148
- name: unused-receiver
104149

105-
linters:
106-
disable-all: true
107-
enable:
108-
- bodyclose
109-
- copyloopvar
110-
- depguard
111-
- dogsled
112-
- dupl
113-
- errcheck
114-
- errorlint
115-
- funlen
116-
- gocheckcompilerdirectives
117-
- gochecknoinits
118-
- gochecknoinits
119-
- goconst
120-
- gocritic
121-
- gocyclo
122-
- godox
123-
- gofmt
124-
- goimports
125-
- mnd
126-
- goprintffuncname
127-
- gosec
128-
- gosimple
129-
- govet
130-
- intrange
131-
- ineffassign
132-
- lll
133-
- misspell
134-
- nakedret
135-
- noctx
136-
- nolintlint
137-
- revive
138-
- staticcheck
139-
- stylecheck
140-
- testifylint
141-
- unconvert
142-
- unparam
143-
- unused
144-
- whitespace
145-
146-
# This list of linters is not a recommendation (same thing for all this configuration file).
147-
# We intentionally use a limited set of linters.
148-
# See the comment on top of this file.
149-
150150
issues:
151151
exclude-rules:
152152
- path: (.+)_test\.go

0 commit comments

Comments
 (0)