Install command:
brew install semgrep

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

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:

Apple Silicon sonoma
Intel sonoma
64-bit linux

Current versions:

stable 1.63.0
head ⚡️ HEAD

Depends on:

gmp 6.3.0 GNU multiple precision arithmetic library
libev 4.33 Asynchronous event library
pcre 8.45 Perl compatible regular expressions library
python-certifi 2024.2.2 Mozilla CA bundle for Python
python@3.11 3.11.8 Interpreted, interactive, object-oriented programming language
sqlite 3.45.1 Command-line interface for SQLite
tree-sitter 0.21.0 Parser generator tool and incremental parsing library

Depends on when building from source:

autoconf 2.72 Automatic configure script builder
cmake 3.28.3 Cross-platform make
coreutils 9.4 GNU File, Shell, and Text utilities
dune 3.14.0 Composable build system for OCaml
ocaml 5.1.0 General purpose programming language in the ML family
opam 2.1.5 OCaml package manager
pipenv 2023.12.1 Python dependency management tool
pkg-config 0.29.2 Manage compile and link flags for libraries
rust 1.76.0 Safe, concurrent, practical language


Installs (30 days)
semgrep 4,365
semgrep --HEAD 16
Installs on Request (30 days)
semgrep 4,367
semgrep --HEAD 16
Build Errors (30 days)
semgrep 7
semgrep --HEAD 2
Installs (90 days)
semgrep 12,009
semgrep --HEAD 31
Installs on Request (90 days)
semgrep 12,003
semgrep --HEAD 31
Installs (365 days)
semgrep 39,909
semgrep --HEAD 77
Installs on Request (365 days)
semgrep 39,884
semgrep --HEAD 77
Fork me on GitHub