Expand description
high-complexity native rule — flags functions exceeding a cyclomatic complexity threshold.
Uses tree-sitter tags queries to identify functions and complexity queries
(or the compute_complexity fallback) to measure cyclomatic complexity.
§Configuration
The threshold is configurable via .normalize/config.toml:
[rules.rule."high-complexity"]
threshold = 10 # default: 20Structs§
- High
Complexity Finding - Serializable per-file finding for the high-complexity rule.
- High
Complexity Rule - Rule that flags functions exceeding a cyclomatic complexity threshold.
Functions§
- build_
high_ complexity_ report - Build a
DiagnosticsReportfor thehigh-complexityrule.