file-read

Try in Playground
public-ruleset

Brett Giller

UnknownInformational

0

No tags

No CWE or CVE

Ast Rule: for loop


file-read

How to write a rule
function visit(node, filename, code) {
  if (!node.arguments || !node.context || !node.arguments.values || !node.functionName) {
    return;
  }
  var error = buildError(node.start.line,
    node.start.col,
    node.end.line,
    node.end.col,
    code,
    "CRITICAL",
    "SECURITY");
  //const edit = buildEditRemove(previousArgument.end.line, previousArgument.end.col,
  //         arg.end.line, arg.end.col)
  const fix = buildFix(code, []);
  addError(error);
}
Add comment

Log in to add a comment


    Be the first one to leave a comment!

Codiga Logo
Codiga Hub
  • Rulesets
  • Playground
  • Snippets
  • Cookbooks
Legal
  • Security
  • Privacy Policy
  • Code Privacy
  • Terms of Service
soc-2 icon

We are SOC-2 Compliance Certified

G2 high performer medal

Codiga – All rights reserved 2022.