Description of CycloComplexity
yourpropertyexpert opened this issue · comments
Description
[(https://phpmd.org/rules/codesize.html)]
The definition includes the line
The decision points are 'if', 'while', 'for', and 'case labels'
The code seems to lean on the calculation of ccn2 in PDepend.
In their repo, line 308 of [(https://github.com/pdepend/pdepend/blob/e2651e950b88e76edf621de41b5d2cc31c5e261c/src/main/php/PDepend/Metrics/Analyzer/CyclomaticComplexityAnalyzer.php)] seems to suggest that they now add 1 for each Catch Statement.
So the description in PHPMD's documentation should say:
The decision points are 'if', 'while', 'for', 'catch', and 'case labels'
Checks before submitting
- Be sure that there isn't already an issue about this. See: Issues list
- Be sure that there isn't already a pull request about this. See: Pull requests
- [YES] Tell if you have the possibility to create a Pull Request to solve this issue.
- If possible add a URL to the incorrect website page or documentation file.
- This issue is about 1 documentation or website issue and nothing more.