10 lines
577 B
TOML
10 lines
577 B
TOML
|
|
# Shift-left complexity gate (see `cargo make complexity`). Not literal
|
||
|
|
# McCabe cyclomatic complexity — clippy's nursery-tier cognitive_complexity
|
||
|
|
# lint, chosen over the closest real cyclomatic-complexity tool
|
||
|
|
# (rust-code-analysis-cli) because that crate hasn't been released since
|
||
|
|
# early 2023. Threshold set well above the current codebase's max (5, in
|
||
|
|
# `main`) so it flags genuinely tangled control flow without nagging on
|
||
|
|
# today's code; revisit if legitimate future complexity (e.g. the
|
||
|
|
# build/publish pipeline) needs more room.
|
||
|
|
cognitive-complexity-threshold = 15
|