pub fn build_high_complexity_report(
root: &Path,
threshold: usize,
explicit_files: Option<&[PathBuf]>,
walk_config: &WalkConfig,
) -> DiagnosticsReportExpand 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.