Expand description
Code complexity metrics calculation for all supported languages
Computes cyclomatic complexity, cognitive complexity, Halstead metrics, and maintainability index for functions/methods.
Structs§
- Complexity
Calculator - Calculates complexity metrics from AST nodes
- Complexity
Thresholds - Thresholds for complexity warnings
Enums§
- Complexity
Severity - Severity of a complexity issue
Functions§
- calculate_
complexity - Calculate complexity for a function given its source code
- calculate_
complexity_ from_ source - Calculate complexity for source code without needing a tree-sitter node
- check_
complexity - Check complexity metrics against thresholds