From 42f2ad8a2903676fc44a67746348c6eab77456f3 Mon Sep 17 00:00:00 2001 From: Martins Irbe Date: Mon, 3 Feb 2020 16:21:03 +0100 Subject: [PATCH] gocritic: update disabled check warning message --- pkg/config/config_gocritic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/config/config_gocritic.go b/pkg/config/config_gocritic.go index 0964d817a1f8..b8397262bb02 100644 --- a/pkg/config/config_gocritic.go +++ b/pkg/config/config_gocritic.go @@ -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)