From 8e8e10b54d52fcefa714c7f4b77db35b57683df3 Mon Sep 17 00:00:00 2001 From: alex <53851759+alxxjohn@users.noreply.github.com> Date: Tue, 16 Jun 2026 16:50:36 -0400 Subject: [PATCH] Fix for Superfluous trailing arguments Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- internal/codeguard/checks/support/typescript_semantic_runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/codeguard/checks/support/typescript_semantic_runner.js b/internal/codeguard/checks/support/typescript_semantic_runner.js index c24b60c..045037a 100644 --- a/internal/codeguard/checks/support/typescript_semantic_runner.js +++ b/internal/codeguard/checks/support/typescript_semantic_runner.js @@ -920,7 +920,7 @@ function analyzeCallExpression(node, sourceFile, relPath, flavor, bindings, chec pushFinding("security", sourceFile, relPath, flavor, rule(flavor, "security.typescript.vm-dynamic-code", "security.javascript.vm-dynamic-code"), "warn", "Node vm dynamic code execution should be reviewed", node.expression.getStart(sourceFile)); } - if (isInsertAdjacentHTML(node.expression) || isDocumentWrite(node.expression, checker)) { + if (isInsertAdjacentHTML(node.expression) || isDocumentWrite(node.expression)) { pushFinding("security", sourceFile, relPath, flavor, rule(flavor, "security.typescript.unsafe-html-sink", "security.javascript.unsafe-html-sink"), "warn", "unsafe HTML injection sink should be reviewed", node.expression.getStart(sourceFile)); }