semgrep

Install command:
brew install semgrep

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

https://semgrep.dev

License: LGPL-2.1-only

Formula JSON API: /api/formula/semgrep.json

Formula code: semgrep.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 1.125.0
head ⚡️ HEAD

Depends on:

certifi 2025.6.15 Mozilla CA bundle for Python
gmp 6.3.0 GNU multiple precision arithmetic library
libev 4.33 Asynchronous event library
pcre 8.45 Perl compatible regular expressions library
pcre2 10.45 Perl compatible regular expressions library with a new API
python@3.13 3.13.5 Interpreted, interactive, object-oriented programming language
sqlite 3.50.1 Command-line interface for SQLite
tree-sitter 0.25.6 Parser generator tool and incremental parsing library
zstd 1.5.7 Zstandard is a real-time compression algorithm

Depends on when building from source:

autoconf 2.72 Automatic configure script builder
cmake 4.0.3 Cross-platform make
coreutils 9.7 GNU File, Shell, and Text utilities
dune 3.19.1 Composable build system for OCaml
ocaml 5.2.1 General purpose programming language in the ML family
opam 2.3.0 OCaml package manager
pipenv 2025.0.3 Python dependency management tool
pkgconf 2.4.3 Package compiler and linker metadata toolkit
rust 1.87.0 Safe, concurrent, practical language

Analytics:

Installs (30 days)
semgrep 2,494
semgrep --HEAD 5
Installs on Request (30 days)
semgrep 2,494
semgrep --HEAD 5
Build Errors (30 days)
semgrep 28
semgrep --HEAD 2
Installs (90 days)
semgrep 10,835
semgrep --HEAD 23
Installs on Request (90 days)
semgrep 10,834
semgrep --HEAD 23
Installs (365 days)
semgrep 45,259
semgrep --HEAD 91
Installs on Request (365 days)
semgrep 45,220
semgrep --HEAD 91
Fork me on GitHub