Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.25 KB

CONTRIBUTING.md

File metadata and controls

35 lines (27 loc) · 1.25 KB

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.

Quick start

Here's a quick way to get Semgrep building from source. See the documentation referenced above for detailed instructions

Install prerequisites

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