A RetroSearch Logo

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

Search Query:

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

[java] NPath complexity false negative due to overflow · Issue #1226 · pmd/pmd · GitHub

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:

XMLConfigSerializer.java.txt

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