Files
leleka/clippy.toml
T
Pavlo Ratushnyi 054b57bec8 STRA-367: opt-in Clippy ratchet for too_many_lines, cognitive_complexity and too_many_arguments; limits gate in check-local --product
scripts/check-clippy-limits.sh (check-local.sh --clippy-limits) counts the three lints per crate
with thresholds 30 / 10 / 5 and fails when a total over all crates rises above
clippy-limits-baseline.json. The root clippy.toml carries only the two thresholds of allow-by-default
lints: too_many_arguments is on by default, and a root threshold of 5 fails the hard Clippy gates of
strata-control and strata-desktop-core. No source enables the lints and no rustfmt.toml is added.
check-local.sh --product runs the limits self-tests and the limits gate next to the architecture gate.
2026-11-06 11:26:53 +01:00

10 lines
816 B
TOML

# Thresholds of the Clippy limits ratchet (STRA-367, lawbook 301, docs/architecture/limits-gate.md).
# too_many_lines and cognitive_complexity are allow-by-default lints: these two numbers change nothing for the default
# `cargo clippy ... -D warnings` gates, and no source enables the lints. scripts/check-clippy-limits.sh turns them on as
# warnings and ratchets the count per crate.
#
# too-many-arguments-threshold = 5 is NOT set here: too_many_arguments is on by default, so 5 would fail the hard Clippy
# gates of check-local.sh --product today (strata-control, strata-desktop-core: functions with 6 and 7 arguments). The
# opt-in script reads scripts/limits/clippy/clippy.toml (CLIPPY_CONF_DIR), which repeats these two keys and adds that one.
too-many-lines-threshold = 30
cognitive-complexity-threshold = 10