MetaCredo. Check. Design. HighComplexity
(MetaCredo v0.1.0)
View Source
Detects functions with cyclomatic complexity exceeding a threshold. Cyclomatic complexity measures the number of linearly independent paths through a function. High complexity makes code harder to test, understand, and maintain.
Thresholds:
- 1-10: Simple, low risk
- 11-20: More complex, moderate risk
- 21-50: Complex, high risk
- 51+: Untestable, very high risk
Category: Software Design / Priority: high
Configuration
Accepts the following parameters via .metacredo.exs:
max_complexity- Maximum allowed cyclomatic complexity (default: 10) (default:10)