summaryrefslogtreecommitdiff
path: root/plugins/security-guidance/tests/test_pattern_false_positives.py
AgeCommit message (Collapse)Author
13 dayssecurity-guidance: fewer false edit warnings on ordinary JavaScriptmhegazy/sg-fewer-false-pattern-warningsClaude
Four edit rules matched their word without looking at what stands next to it: - eval: Playwright's and Puppeteer's page.$eval('selector', function) and $$eval got the eval() warning. They run the function they are given. Left out only when the selector is a plain string and the function is written out in the call. AngularJS scope.$eval(expr) and every other $eval( still warn. - new Function: the whole word is needed, so new FunctionRegistry() is quiet. - innerHTML and outerHTML: an assignment is needed, so == and === are quiet. Nothing warns that did not warn before. Co-authored-by: mhegazy <mhegazy@anthropic.com>