Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[java] NPath complexity false negative due to overflow #1226
Affects PMD Version: 6.5.0
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
Running PMD through: CLI
The ruleset: pmd.xml.gz
@jsotuyod I don't think that would interact well with the metrics' caching since every rule may have a separate report level. Granted, for now metrics are mostly one-to-one with rules, so the caching may not be very useful (until we implement multifile analysis).
For this metric we could probably just use a