Skip to content

Commit 9b10061

Browse files
committed
chore: handle more deprecated linter options
1 parent efc9580 commit 9b10061

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pkg/config/loader.go

+16
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,22 @@ func (l *Loader) handleDeprecation() error {
350350
"`linters.gomnd.checks`,`linters.gomnd.ignored-numbers`,`linters.gomnd.ignored-files`,`linters.gomnd.ignored-functions`.")
351351
}
352352

353+
if l.cfg.LintersSettings.Gofumpt.LangVersion != "" {
354+
l.warn("The configuration option `linters.gofumpt.lang-version` is deprecated, please use global `run.go`.")
355+
}
356+
357+
if l.cfg.LintersSettings.Staticcheck.GoVersion != "" {
358+
l.warn("The configuration option `linters.staticcheck.go` is deprecated, please use global `run.go`.")
359+
}
360+
361+
if l.cfg.LintersSettings.Gosimple.GoVersion != "" {
362+
l.warn("The configuration option `linters.gosimple.go` is deprecated, please use global `run.go`.")
363+
}
364+
365+
if l.cfg.LintersSettings.Stylecheck.GoVersion != "" {
366+
l.warn("The configuration option `linters.stylecheck.go` is deprecated, please use global `run.go`.")
367+
}
368+
353369
return nil
354370
}
355371

0 commit comments

Comments
 (0)