summaryrefslogtreecommitdiff
path: root/plugins/code-simplifier
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-11-12 23:23:59 +0000
committerClaude <noreply@anthropic.com>2026-11-13 00:34:06 +0000
commit2d02bcafc3530606c2f59760eccb14ae08e1c0ce (patch)
tree31ad7e08714a7ac8fdf20cc5efd74b59202e32d4 /plugins/code-simplifier
parentf75f5b25ae94f4332be4ff5f18435741d2589bdb (diff)
security-guidance: fewer false edit warnings on ordinary JavaScriptmhegazy/sg-fewer-false-pattern-warnings
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>
Diffstat (limited to 'plugins/code-simplifier')
0 files changed, 0 insertions, 0 deletions