-
Affects PMD Version: 6.4.0 Rule: NcssCount Description: When not specifying the methodReportLevel explicitely it seems it is not defaulting to 60 (https://pmd.github.io/pmd-6.5.0/pmd_rules_java_design.html#ncsscount). Code Sample demonstrating the issue: public class NcssCountSmall {
public static void main(String[] args) {
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
System.out.println("line");
}
} This method is listed as a violation "The method 'main(String)' has a NCSS line count of 22.". <rule ref="category/java/design.xml/NcssCount">
<properties>
<property name="methodReportLevel" value="30" />
</properties>
</rule> Then it is not listed as a violation. Is this intended behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@TrackerSB The report level in 6.5.0 is 60, in 6.4.0 (the version you're using) it was still 12 (-> you're looking at the doc of another version). The report level was propped up after #1200 |
Beta Was this translation helpful? Give feedback.
@TrackerSB The report level in 6.5.0 is 60, in 6.4.0 (the version you're using) it was still 12 (-> you're looking at the doc of another version). The report level was propped up after #1200