Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
peakle committed Mar 27, 2022
1 parent be347a4 commit 74d6bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkers/ruleguard_checker.go
Expand Up @@ -184,7 +184,7 @@ func newRuleguardChecker(info *linter.CheckerInfo, ctx *linter.CheckerContext) (
DebugPrint: debugPrint,
GroupFilter: func(g *ruleguard.GoRuleGroup) bool {
whyDisabled := ""
enabled := len(enabledGroups) == 0 || enabledGroups[g.Name]
enabled := flagEnable == "<all>" || enabledGroups[g.Name]
switch {
case !enabled:
whyDisabled = "not enabled by -enabled flag"
Expand Down

0 comments on commit 74d6bb7

Please sign in to comment.