Skip to content

Commit b277ca3

Browse files
committed
chore: handle more deprecated linter options
1 parent bebae27 commit b277ca3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pkg/config/loader.go

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

353+
// Deprecated since v1.47.0
354+
if l.cfg.LintersSettings.Gofumpt.LangVersion != "" {
355+
l.warn("The configuration option `linters.gofumpt.lang-version` is deprecated, please use global `run.go`.")
356+
}
357+
358+
// Deprecated since v1.47.0
359+
if l.cfg.LintersSettings.Staticcheck.GoVersion != "" {
360+
l.warn("The configuration option `linters.staticcheck.go` is deprecated, please use global `run.go`.")
361+
}
362+
363+
// Deprecated since v1.47.0
364+
if l.cfg.LintersSettings.Gosimple.GoVersion != "" {
365+
l.warn("The configuration option `linters.gosimple.go` is deprecated, please use global `run.go`.")
366+
}
367+
368+
// Deprecated since v1.47.0
369+
if l.cfg.LintersSettings.Stylecheck.GoVersion != "" {
370+
l.warn("The configuration option `linters.stylecheck.go` is deprecated, please use global `run.go`.")
371+
}
372+
353373
return nil
354374
}
355375

0 commit comments

Comments
 (0)