Skip to main content

build_long_function_report

Function build_long_function_report 

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

Build a DiagnosticsReport for the long-function rule.

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