Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Make the cyclomatic complexity limit configurable. #190
If you can, can you also update documentation to help users to know how to configure it ?
You just have to add in https://github.com/nunomaduro/phpinsights/blob/master/docs/insights/complexity.md something like
+ <details> + <summary>Configuration</summary> + + ```php + \NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh::class => [ + 'maxComplexity' => 5 + ] + ``` + </details>
after Insight Class: