File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,12 @@ func (l *Loader) handleDeprecation() error {
322
322
l .cfg .Output .Formats = f
323
323
}
324
324
325
+ l .handleLinterOptionDeprecations ()
326
+
327
+ return nil
328
+ }
329
+
330
+ func (l * Loader ) handleLinterOptionDeprecations () {
325
331
// Deprecated since v1.57.0,
326
332
// but it was unofficially deprecated since v1.19 (2019) (https://github.com/golangci/golangci-lint/pull/697).
327
333
if l .cfg .LintersSettings .Govet .CheckShadowing {
@@ -369,8 +375,6 @@ func (l *Loader) handleDeprecation() error {
369
375
if l .cfg .LintersSettings .Stylecheck .GoVersion != "" {
370
376
l .warn ("The configuration option `linters.stylecheck.go` is deprecated, please use global `run.go`." )
371
377
}
372
-
373
- return nil
374
378
}
375
379
376
380
func (l * Loader ) handleEnableOnlyOption () error {
You can’t perform that action at this time.
0 commit comments