Skip to main content

cyclomatic_per_function

Function cyclomatic_per_function 

Source
pub fn cyclomatic_per_function(
    source: &str,
    extension: &str,
) -> Option<Vec<FunctionComplexity>>
Expand description

AST-backed cyclomatic complexity for every function-like node under structural chunks.

Returns None when tree-sitter is disabled or extension is unsupported.