Runs a bunch of static analysis tools on Rust code. Useful in a Continuous Integration setting.
2.1K
Repository: https://gitlab.com/snowpoke93/rust-static-analysis.git
Updates are pushed monthly.
This container runs a suite of static analysis tools on your Rust code and exits with code 0 if all of the following tests pass:
Cargo.toml fileTo run on the current crate:
docker run -v $(pwd):/project snowpoke93/rust-static-analysis
To initialize a cargo-deny config file:
docker run -v $(pwd):/project snowpoke93/rust-static-analysis cargo-deny init
You can adjust some settings by setting the following environment variables:
MAX_FUNCTION_LENGTH: Maximal allowed lines of code in a function. (default: 200)MAX_PARAMETER_COUNT: Number of maximal allowed parameters for a function. (default: 5)MAX_COMPLEXITY: Maximal allowed Cyclomatic Complexity for a function. (default: 5)CODESPELL_SKIP_FILES: Comma-separated list of files to be skipped by Codespell. (default: "*.txt,./target,./.cargo")CODESPELL_ALLOW_WORDS: Comma-separated list of words that should not be recognized as typos by Codespell. (default: "crate")Content type
Image
Digest
sha256:cdf930b1a…
Size
996.4 MB
Last updated
almost 3 years ago
docker pull snowpoke93/rust-static-analysis