Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1015 Bytes

File metadata and controls

27 lines (18 loc) · 1015 Bytes

Overview

This project is Datadog's static analyzer and secret detection tool, used to find code patterns, detect violations, and identify secrets.

The static code analysis part relies heavily on tree-sitter.

Secret detection relies on Datadog SDS.

Code Structure

  • crates/bin contains all the binaries
  • crates/cli contains all code for the command-line features (creating CSV, manipulating files, etc)
  • crates/common contains all code common to the CLI and the server
  • crates/secrets contains the code specific to the secrets scanning product
  • crates/static-analysis-kernel contains the code specific to the static analyzer
  • crates/static-analysis-server contains the code specific to the static analyzer server (used in IDE)

Testing

  1. NEVER write table tests.
  2. Always run tests (e.g. cargo test)
  3. Always run the format checker cargo fmt -- --check
  4. Always run clippy cargo clippy -- -D warnings

How to release a new version?

Invoke the script ./misc/release.sh