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 {
322322 l .cfg .Output .Formats = f
323323 }
324324
325+ l .handleLinterOptionDeprecations ()
326+
327+ return nil
328+ }
329+
330+ func (l * Loader ) handleLinterOptionDeprecations () {
325331 // Deprecated since v1.57.0,
326332 // but it was unofficially deprecated since v1.19 (2019) (https://github.com/golangci/golangci-lint/pull/697).
327333 if l .cfg .LintersSettings .Govet .CheckShadowing {
@@ -365,8 +371,6 @@ func (l *Loader) handleDeprecation() error {
365371 if l .cfg .LintersSettings .Stylecheck .GoVersion != "" {
366372 l .warn ("The configuration option `linters.stylecheck.go` is deprecated, please use global `run.go`." )
367373 }
368-
369- return nil
370374}
371375
372376func (l * Loader ) handleEnableOnlyOption () error {
You can’t perform that action at this time.
0 commit comments