Thank you for your interest in contributing to the Semgrep source code!
Find contribution guidelines in Semgrep documentation.
Specifically, see Contributing code to contribute either to Semgrep source code or semgrep-core source code.
Here's a quick way to get Semgrep building from source. See the documentation referenced above for detailed instructions
The following dependencies need to be installed:
To install these on MacOS, run make configure-osx. Otherwise install these dependencies through the appropriate package manager, and then run make configure.
Now we can setup the OCaml dependencies, and install Semgrep:
# Install OCaml dependencies
make setup
# Build the OCaml binaries under `bin/`
make
# install the CLI wrapper in `cli/` in editable mode
# w/freshly built OCaml binary included
make install
# run tests
make test