Skip to content

Commit

Permalink
fix: negative search check type for ifstatements rule
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 3c0680ae900e5d2efd1a60417a9a7ea2c5ff0f5cdbc55bb47f2e2708941fdfd3
  • Loading branch information
thindil committed Mar 15, 2024
1 parent bea082d commit 6b1d540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/ifstatements.nim
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ checkRule:
checkResult = false
elif node.len > rule.options[1].parseInt():
checkResult = false
if rule.ruleType == RuleTypes.count:
if rule.ruleType in {RuleTypes.count, search}:
checkResult = not checkResult
setResult(checkResult = checkResult,
positiveMessage = positiveMessage,
Expand Down

0 comments on commit 6b1d540

Please sign in to comment.