New and changed code is checked against the base (merge-base with the integration branch): every added or touched function and every added or changed line must be within the limits, unless limits-allowlist.json lists the function with a reason and an owner; an allowlisted function may only shrink. The legacy that exists today is a per-crate census in limits-baseline.json whose totals may only fall (same --update-baseline semantics as the architecture gate). Rust is measured from the rustsplit lexer, the gate's own Python from ast. 56 self-tests, including a temporary git repository.
5 lines
310 B
TOML
5 lines
310 B
TOML
# Clippy configuration of scripts/check-clippy-limits.sh only (CLIPPY_CONF_DIR), lawbook 301 (STRA-367).
|
|
# The first two keys repeat the root clippy.toml (a test keeps them equal); the third is the opt-in extra.
|
|
too-many-lines-threshold = 30
|
|
cognitive-complexity-threshold = 10
|
|
too-many-arguments-threshold = 5 |