Affects PMD Version: 6.36.0-SNAPSHOT
Description:
The rule doc for CognitiveComplexity is wrong for the "else if" branch. It should be only one increment (the nesting is only considered for "if").
See also #3320
Additionally, there is no rule test for this rule... The example from the rule doc should be added as a test case at least.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4