nosemgrep
A code comment that tells Semgrep to ignore a finding on that line, ideally naming the exact rule being suppressed.
In more detail
It is written as a comment in the language of the file, followed by a colon and the rule ID. Suppressions should name the rule and be reviewed like code; a bare nosemgrep silences every rule on the line.
Related terms
- Semgrep — An open-source static analysis tool whose rules look like the code they match, with metavariables and ellipses for the parts that vary.
- false positive — A check result that claims something is true when it is not, such as a test passing on broken code or a tool flagging correct code.
Taught in
- Static Application Security Testing with Semgrep — Cloud Security & DevSecOps Engineering