phpinsights
phpinsights copied to clipboard
Add Cognitive complexity
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
Library version | 1.14.0 |
Font: https://blog.sonarsource.com/cognitive-complexity-because-testability-understandability
maybe it can be a good feature for the project.
It would be really interresting ! Any idea on how to implement this ?
This would be awesome. Some digging came across this PHPCS standard. https://github.com/Rarst/phpcs-cognitive-complexity/blob/master/src/CognitiveComplexity/Analyzer.php
well no idea how to implement this in the lib, But I can see how CyclomaticComplexityIsHigh
works and try to open a Pull Request.