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.139.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.46 Perl compatible regular expressions library with a new API
python@3.13 3.13.9 Interpreted, interactive, object-oriented programming language
sqlite 3.50.4 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.3.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
rust 1.90.0 Safe, concurrent, practical language

Analytics:

Installs (30 days)
semgrep 4,842
semgrep --HEAD 3
Installs on Request (30 days)
semgrep 4,830
semgrep --HEAD 3
Build Errors (30 days)
semgrep 11
Installs (90 days)
semgrep 13,914
semgrep --HEAD 17
Installs on Request (90 days)
semgrep 13,894
semgrep --HEAD 17
Installs (365 days)
semgrep 50,548
semgrep --HEAD 92
Installs on Request (365 days)
semgrep 50,494
semgrep --HEAD 92