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.43.0
head ⚡️ HEAD

Depends on:

gmp 6.2.1 GNU multiple precision arithmetic library
pcre 8.45 Perl compatible regular expressions library
pygments 2.16.1 Generic syntax highlighter
python-certifi 2023.7.22 Mozilla CA bundle for Python
python-typing-extensions 4.8.0 Backported and experimental type hints for Python
python@3.11 3.11.5 Interpreted, interactive, object-oriented programming language
tree-sitter 0.20.8 Parser generator tool and incremental parsing library

Depends on when building from source:

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


Installs (30 days)
semgrep 3,721
Installs on Request (30 days)
semgrep 3,722
Build Errors (30 days)
semgrep 2
Installs (90 days)
semgrep 10,267
Installs on Request (90 days)
semgrep 10,263
Installs (365 days)
semgrep 20,773
Installs on Request (365 days)
semgrep 20,756
Fork me on GitHub