Skip to content

Commit

Permalink
fix: search check type for localhides rule
Browse files Browse the repository at this point in the history
FossilOrigin-Name: cc069dbbdd3903a707c76f344157173123a76fe0ef13b7800c18f4a533815a1a
  • Loading branch information
thindil committed Mar 19, 2024
1 parent a2307a8 commit a4229b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/localhides.nim
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ proc setCheckResult(node, section, parent: PNode; messagePrefix: string;
if hiddingChild != nil:
hiddenLine = hiddingChild.info.line
break
if rule.ruleType == RuleTypes.count:
if rule.ruleType in {RuleTypes.count, search}:
if hiddenLine > 0:
setResult(checkResult = true, positiveMessage = positiveMessage,
negativeMessage = negativeMessage, node = node, ruleData = $node[namePos],
Expand Down

0 comments on commit a4229b8

Please sign in to comment.