Skip to main content

analyze_rust_function_complexity

Function analyze_rust_function_complexity 

Source
pub fn analyze_rust_function_complexity(
    content: &str,
) -> RustFunctionComplexitySummary
Expand description

Analyze function-scoped cyclomatic complexity of Rust source code.

The keyword list intentionally omits else if: an else if branch already contains if, and counting both terms double-counts a single decision.