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
tahoe
sequoia
sonoma
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 1.142.0
head ⚡️ HEAD

Depends on:

certifi 2025.10.5 Mozilla CA bundle for Python
dwarfutils 2.2.0 Dump and produce DWARF debug information in ELF objects
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.47 Perl compatible regular expressions library with a new API
pydantic 2.12.4 Data validation using Python type hints
python@3.14 3.14.0 Interpreted, interactive, object-oriented programming language
rpds-py 0.28.0 Python bindings to Rust's persistent data structures
sqlite 3.51.0 Command-line interface for SQLite
tree-sitter 0.25.10 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.1.2 Cross-platform make
coreutils 9.8 GNU File, Shell, and Text utilities
dune 3.20.2 Composable build system for OCaml
ocaml 5.4.0 General purpose programming language in the ML family
opam 2.4.1 OCaml package manager
pipenv 2025.0.4 Python dependency management tool
pkgconf 2.5.1 Package compiler and linker metadata toolkit

Analytics:

Installs (30 days)
semgrep 5,517
semgrep --HEAD 7
Installs on Request (30 days)
semgrep 5,507
semgrep --HEAD 7
Build Errors (30 days)
semgrep 8
Installs (90 days)
semgrep 15,926
semgrep --HEAD 18
Installs on Request (90 days)
semgrep 15,900
semgrep --HEAD 18
Installs (365 days)
semgrep 51,862
semgrep --HEAD 93
Installs on Request (365 days)
semgrep 51,812
semgrep --HEAD 93