Semgrep

An open-source static analysis tool whose rules look like the code they match, with metavariables and ellipses for the parts that vary.

In more detail

A rule has an ID, target languages, a severity, a message and one or more patterns. Semgrep matches them against the syntax tree, so formatting, comments and variable names do not matter.

Related terms

Taught in

References