Complexity
For now the Complexity section is only one Insight in one Metric:
NunoMaduro\PhpInsights\Domain\Metrics\Complexity\Complexity
Complexity
^1.0 Complexity
Cyclomatic Complexity is highThis insight checks complexity cyclomatic on your classes, the lower the score the easier your code is to understand. It raises an issue if complexity is over 5
.
Insight Class: NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh
Configuration
\NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh::class => [
'maxComplexity' => 5,
]