Skip to main content

build_high_complexity_report

Function build_high_complexity_report 

Source
pub fn build_high_complexity_report(
    root: &Path,
    threshold: usize,
    explicit_files: Option<&[PathBuf]>,
    walk_config: &WalkConfig,
) -> DiagnosticsReport
Expand description

Build a DiagnosticsReport for the high-complexity rule.

Walks all source files under root, parses each with tree-sitter, and emits an issue for every function whose cyclomatic complexity meets or exceeds the threshold.