Affects PMD Version: 6.5.0
Rule: net.sourceforge.pmd.lang.java.rule.design.NPathComplexityRule
Description: On some methods, the NPath complexity is not reported, even though the threshold for reporting it is set to the minimum value. In earlier versions of PMD (e.g., 5.3), NPath complexity was reported for these methods.
Code Sample demonstrating the issue:
No NPath complexity is reported for the method readVar()
in the sample below:
Running PMD through: CLI
The ruleset: pmd.xml.gz
<rule ref="category/java/design.xml/NPathComplexity">
<properties>
<property name="reportLevel" value="0"/>
</properties>
</rule>
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