@@ -143,36 +143,48 @@ linters:
143
143
# See the comment on top of this file.
144
144
145
145
issues :
146
- # Excluding configuration per-path, per-linter, per-text and per-source
147
146
exclude-rules :
148
147
- path : (.+)_test\.go
149
148
linters :
150
149
- dupl
151
150
- gomnd
152
151
- lll
153
152
153
+ # The logic of creating a linter is similar between linters, it's not duplication.
154
154
- path : pkg/golinters
155
155
linters :
156
156
- dupl
157
157
158
+ # Deprecated configuration options.
159
+ - path : pkg/commands/run.go
160
+ linters : [staticcheck]
161
+ text : " SA1019: c.cfg.Run.ShowStats is deprecated: use Output.ShowStats instead."
162
+ - path : pkg/commands/config.go
163
+ text : " SA1019: cfg.Run.UseDefaultSkipDirs is deprecated: use Issues.UseDefaultExcludeDirs instead."
164
+
165
+ # Deprecated linter options.
158
166
- path : pkg/golinters/errcheck.go
159
167
linters : [staticcheck]
160
168
text : " SA1019: errCfg.Exclude is deprecated: use ExcludeFunctions instead"
161
169
- path : pkg/commands/run.go
162
170
linters : [staticcheck]
163
171
text : " SA1019: lsc.Errcheck.Exclude is deprecated: use ExcludeFunctions instead"
164
- - path : pkg/commands/run.go
165
- linters : [staticcheck]
166
- text : " SA1019: c.cfg.Run.ShowStats is deprecated: use Output.ShowStats instead."
167
172
- path : pkg/golinters/govet.go
168
173
text : " SA1019: cfg.CheckShadowing is deprecated: the linter should be enabled inside `Enable`."
169
- - path : pkg/commands/config.go
170
- text : " SA1019: cfg.Run.UseDefaultSkipDirs is deprecated: use Issues.UseDefaultExcludeDirs instead."
171
-
172
174
- path : pkg/golinters/godot.go
173
175
linters : [staticcheck]
174
- text : " SA1019: settings.CheckAll is deprecated: use `Scope` instead"
176
+ text : " SA1019: settings.CheckAll is deprecated: use Scope instead"
177
+ - path : pkg/golinters/gci.go
178
+ linters : [staticcheck]
179
+ text : " SA1019: settings.LocalPrefixes is deprecated: use Sections instead."
180
+ - path : pkg/golinters/gomnd.go
181
+ linters : [staticcheck]
182
+ text : " SA1019: settings.Settings is deprecated: use root level settings instead."
183
+ - path : pkg/golinters/gomnd.go
184
+ linters : [staticcheck]
185
+ text : " SA1019: settings.Settings is deprecated: use root level settings instead."
175
186
187
+ # Related to `run.go`, it cannot be removed.
176
188
- path : pkg/golinters/gofumpt.go
177
189
linters : [staticcheck]
178
190
text : " SA1019: settings.LangVersion is deprecated: use the global `run.go` instead."
@@ -183,6 +195,7 @@ issues:
183
195
linters : [staticcheck]
184
196
text : " SA1019: (.+).(GoVersion|LangVersion) is deprecated: use the global `run.go` instead."
185
197
198
+ # Based on existing code, the modifications should be limited to make maintenance easier.
186
199
- path : pkg/golinters/unused.go
187
200
linters : [gocritic]
188
201
text : " rangeValCopy: each iteration copies 160 bytes \\ (consider pointers or indexing\\ )"
0 commit comments