Skip to content

Commit 10e318e

Browse files
committed
docs: add info about the deprecations
1 parent 3bd44bb commit 10e318e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/config/loader.go

+4
Original file line numberDiff line numberDiff line change
@@ -356,18 +356,22 @@ func (l *Loader) handleLinterOptionDeprecations() {
356356
"`linters.gomnd.checks`,`linters.gomnd.ignored-numbers`,`linters.gomnd.ignored-files`,`linters.gomnd.ignored-functions`.")
357357
}
358358

359+
// Deprecated since v1.47.0
359360
if l.cfg.LintersSettings.Gofumpt.LangVersion != "" {
360361
l.warn("The configuration option `linters.gofumpt.lang-version` is deprecated, please use global `run.go`.")
361362
}
362363

364+
// Deprecated since v1.47.0
363365
if l.cfg.LintersSettings.Staticcheck.GoVersion != "" {
364366
l.warn("The configuration option `linters.staticcheck.go` is deprecated, please use global `run.go`.")
365367
}
366368

369+
// Deprecated since v1.47.0
367370
if l.cfg.LintersSettings.Gosimple.GoVersion != "" {
368371
l.warn("The configuration option `linters.gosimple.go` is deprecated, please use global `run.go`.")
369372
}
370373

374+
// Deprecated since v1.47.0
371375
if l.cfg.LintersSettings.Stylecheck.GoVersion != "" {
372376
l.warn("The configuration option `linters.stylecheck.go` is deprecated, please use global `run.go`.")
373377
}

0 commit comments

Comments
 (0)