Skip to content

Commit 42f2ad8

Browse files
committed
gocritic: update disabled check warning message
1 parent fd621bd commit 42f2ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/config/config_gocritic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ func (s *GocriticSettings) InferEnabledChecks(log logutils.Log) {
139139
enabledChecksSet := stringsSliceToSet(enabledChecks)
140140
for _, disabledCheck := range s.DisabledChecks {
141141
if !enabledChecksSet[disabledCheck] {
142-
log.Warnf("Gocritic check %q was disabled by config, was it's not enabled, no need to disable it",
143-
disabledCheck)
142+
log.Warnf("Gocritic check %q was explicitly disabled via config. However, as this check"+
143+
"is disabled by default, there is no need to explicitly disable it via config.", disabledCheck)
144144
continue
145145
}
146146
delete(enabledChecksSet, disabledCheck)

0 commit comments

Comments
 (0)