A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/3332 below:

[apex] CognitiveComplexity - incorrect increment for "else if" · Issue #3332 · pmd/pmd · GitHub

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