Skip to content

Commit 2e879a7

Browse files
committed
fix: less ambiguous message
1 parent c9824a6 commit 2e879a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/config/loader.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,29 +325,29 @@ func (l *Loader) handleDeprecation() error {
325325
// Deprecated since v1.57.0,
326326
// but it was unofficially deprecated since v1.19 (2019) (https://github.com/golangci/golangci-lint/pull/697).
327327
if l.cfg.LintersSettings.Govet.CheckShadowing {
328-
l.warn("The configuration option `govet.check-shadowing` is deprecated. " +
328+
l.warn("The configuration option `linters.govet.check-shadowing` is deprecated. " +
329329
"Please enable `shadow` instead, if you are not using `enable-all`.")
330330
}
331331

332332
// Deprecated since v1.42.0.
333333
if l.cfg.LintersSettings.Errcheck.Exclude != "" {
334-
l.warn("The configuration option `errcheck.exclude` is deprecated, please use `errcheck.exclude-functions`.")
334+
l.warn("The configuration option `linters.errcheck.exclude` is deprecated, please use `linters.errcheck.exclude-functions`.")
335335
}
336336

337337
// Deprecated since v1.44.0.
338338
if l.cfg.LintersSettings.Gci.LocalPrefixes != "" {
339-
l.warn("The configuration option `gci.local-prefixes` is deprecated, please use `prefix()` inside `gci.sections`.")
339+
l.warn("The configuration option `linters.gci.local-prefixes` is deprecated, please use `prefix()` inside `linters.gci.sections`.")
340340
}
341341

342342
// Deprecated since v1.33.0.
343343
if l.cfg.LintersSettings.Godot.CheckAll {
344-
l.warn("The configuration option `godot.check-all` is deprecated, please use `godot.scope: all`.")
344+
l.warn("The configuration option `linters.godot.check-all` is deprecated, please use `linters.godot.scope: all`.")
345345
}
346346

347347
// Deprecated since v1.44.0.
348348
if len(l.cfg.LintersSettings.Gomnd.Settings) > 0 {
349-
l.warn("The configuration option `gomnd.settings` is deprecated. " +
350-
"Please use the options `gomnd.checks`,`gomnd.ignored-numbers`,`gomnd.ignored-files`,`gomnd.ignored-functions`.")
349+
l.warn("The configuration option `linters.gomnd.settings` is deprecated. " +
350+
"Please use the options `linters.gomnd.checks`,`linters.gomnd.ignored-numbers`,`linters.gomnd.ignored-files`,`linters.gomnd.ignored-functions`.")
351351
}
352352

353353
return nil

0 commit comments

Comments
 (0)