Skip to main content

Module cyclomatic

Module cyclomatic 

Source
Expand description

Cyclomatic complexity via tree-sitter (decision-point counting).

Uses the same structural chunk roots as super::chunks_ts and walks each function-like subtree, skipping nested function bodies so inner items get their own scores.

Structs§

FunctionComplexity
McCabe-style complexity for one function-like root (minimum 1).

Functions§

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