From fbc129ff274975ec243ef7ace43668dbd740998d Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Tue, 10 Oct 2023 22:19:42 +0200 Subject: [PATCH] typos.yaml: remove explicit variable false positive --- assets/semgrep_rules/client/typos.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/semgrep_rules/client/typos.yaml b/assets/semgrep_rules/client/typos.yaml index df6adbf2..29620348 100644 --- a/assets/semgrep_rules/client/typos.yaml +++ b/assets/semgrep_rules/client/typos.yaml @@ -39,6 +39,7 @@ rules: - pattern-not-inside: if (<... ($EXPR1 = $EXPR2) <= $EXPR ...>) ... - pattern-not-inside: if (<... ($EXPR1 = $EXPR2) > $EXPR ...>) ... - pattern-not-inside: if (<... ($EXPR1 = $EXPR2) >= $EXPR ...>) ... + - pattern-not-regex: "\\(\\s*[_a-zA-Z][_a-zA-Z0-9]{0,30}\\**\\s+\\**[_a-zA-Z][_a-zA-Z0-9]{0,30}\\s*=" # REMOVED: False Positive on Chrome, & instead of && in comparison # - patterns: # - pattern: if (<... $EXPR1 & $EXPR2 ...>) ...