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

Bottle JSON API: /api/bottle/semgrep.json

Formula code: semgrep.rb on GitHub

Bottle (binary package) installation support provided for:

Intel monterey
big sur
catalina
64-bit linux
Apple Silicon monterey
big sur

Current versions:

stable 0.115.0
head ⚡️ HEAD

Depends on:

jsonschema 4.16.0 Implementation of JSON Schema for Python
pcre 8.45 Perl compatible regular expressions library
python-typing-extensions 4.3.0 Backported and experimental type hints for Python
python@3.10 3.10.7 Interpreted, interactive, object-oriented programming language
tree-sitter 0.20.7 Parser generator tool and incremental parsing library

Depends on when building from source:

cmake 3.24.2 Cross-platform make
coreutils 9.1 GNU File, Shell, and Text utilities
dune 3.4.1 Composable build system for OCaml
ocaml 4.14.0 General purpose programming language in the ML family
opam 2.1.3 OCaml package manager
pipenv 2022.9.24 Python dependency management tool
pkg-config 0.29.2 Manage compile and link flags for libraries

Analytics (macOS):

Installs (30 days)
semgrep 4,588
semgrep --HEAD 3
Installs on Request (30 days)
semgrep 4,588
semgrep --HEAD 3
Build Errors (30 days)
semgrep 3
Installs (90 days)
semgrep 14,194
semgrep --HEAD 4
Installs on Request (90 days)
semgrep 14,193
semgrep --HEAD 4
Installs (365 days)
semgrep 46,953
semgrep --HEAD 6
Installs on Request (365 days)
semgrep 46,957
semgrep --HEAD 6

Analytics (Linux):

Installs (30 days)
semgrep 157
Installs on Request (30 days)
semgrep 160
Build Errors (30 days)
semgrep 1
Installs (90 days)
semgrep 459
Installs on Request (90 days)
semgrep 461
Installs (365 days)
semgrep 1,284
Installs on Request (365 days)
semgrep 1,284
Fork me on GitHub