gocritic: update disabled check warning message

This commit is contained in:
Martins Irbe 2020-02-03 16:21:03 +01:00
parent fd621bd3c6
commit 42f2ad8a29

@ -139,8 +139,8 @@ func (s *GocriticSettings) InferEnabledChecks(log logutils.Log) {
enabledChecksSet := stringsSliceToSet(enabledChecks)
for _, disabledCheck := range s.DisabledChecks {
if !enabledChecksSet[disabledCheck] {
log.Warnf("Gocritic check %q was disabled by config, was it's not enabled, no need to disable it",
disabledCheck)
log.Warnf("Gocritic check %q was explicitly disabled via config. However, as this check"+
"is disabled by default, there is no need to explicitly disable it via config.", disabledCheck)
continue
}
delete(enabledChecksSet, disabledCheck)