semgrep

Detect and prevent bugs and anti-patterns in your codebase

brewmacoslinux
Try with needOr install directly
Source

About

Easily detect and prevent bugs and anti-patterns in your codebase

Commands

semgrep

Examples

Scan current directory with default rules$ semgrep --config=p/owasp-top-ten .
Run Semgrep on a specific file with custom rule$ semgrep --config=myrule.yml path/to/file.js
Output results in JSON format for processing$ semgrep --json --config=p/security-audit . > results.json