Skip to content

Commit 44f1f95

Browse files
committed
chore isolate debug logs
1 parent fe72773 commit 44f1f95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/golinters/gocritic/gocritic.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ func (s *settingsWrapper) InferEnabledChecks() {
316316

317317
if len(s.EnabledTags) != 0 {
318318
enabledFromTags := s.expandTagsToChecks(s.EnabledTags)
319+
319320
debugChecksListf(enabledFromTags, "Enabled by config tags %s", s.EnabledTags)
320321

321322
for _, check := range enabledFromTags {
@@ -337,6 +338,7 @@ func (s *settingsWrapper) InferEnabledChecks() {
337338

338339
if len(s.DisabledTags) != 0 {
339340
disabledFromTags := s.expandTagsToChecks(s.DisabledTags)
341+
340342
debugChecksListf(disabledFromTags, "Disabled by config tags %s", s.DisabledTags)
341343

342344
for _, check := range disabledFromTags {
@@ -358,6 +360,7 @@ func (s *settingsWrapper) InferEnabledChecks() {
358360

359361
s.inferredEnabledChecks = enabledChecks
360362
s.inferredEnabledChecksLowerCased = normalizeMap(s.inferredEnabledChecks)
363+
361364
s.debugChecksFinalState()
362365
}
363366

0 commit comments

Comments
 (0)