fix: Add missing space in "disabled by config" warning (#2310)

Before this change, the message said "However, as this checkis disabled by default".
This commit is contained in:
Kirill Danshin 2021-11-02 06:32:39 +03:00 committed by GitHub
parent a2b2968b12
commit 8cb9c769ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ 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 explicitly disabled via config. However, as this check"+ 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) "is disabled by default, there is no need to explicitly disable it via config.", disabledCheck)
continue continue
} }