10 lines
821 B
TOML
10 lines
821 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 (leleka-control-plane, leleka-engine-host: 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 |