Merge pull request #958 from martinsirbe/update-warn-msg
gocritic: update disabled check warning message
This commit is contained in:
commit
4d165fc2dd
@ -139,8 +139,8 @@ func (s *GocriticSettings) InferEnabledChecks(log logutils.Log) {
|
|||||||
enabledChecksSet := stringsSliceToSet(enabledChecks)
|
enabledChecksSet := stringsSliceToSet(enabledChecks)
|
||||||
for _, disabledCheck := range s.DisabledChecks {
|
for _, disabledCheck := range s.DisabledChecks {
|
||||||
if !enabledChecksSet[disabledCheck] {
|
if !enabledChecksSet[disabledCheck] {
|
||||||
log.Warnf("Gocritic check %q was disabled by config, was it's not enabled, no need to disable it",
|
log.Warnf("Gocritic check %q was explicitly disabled via config. However, as this check"+
|
||||||
disabledCheck)
|
"is disabled by default, there is no need to explicitly disable it via config.", disabledCheck)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
delete(enabledChecksSet, disabledCheck)
|
delete(enabledChecksSet, disabledCheck)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user