Skip to content

Commit 40150b1

Browse files
committed
chore(pmd): replace deprecated Ncss*Count PMD's rules by the NcssCount
Quote from https://pmd.github.io/2017/12/15/PMD-6.0.0/ % The new Java rule NcssCount (category design) replaces the three rules “NcssConstructorCount”, “NcssMethodCount”, and “NcssTypeCount”. The new rule uses the metrics framework to achieve the same. It has two properties, to define the report level for method and class sizes separately. Constructors and methods are considered the same. % Part of #1018 [skip ci]
1 parent 5dcfb49 commit 40150b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/config/pmd.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@
152152
<rule ref="category/java/design.xml/LogicInversion" />
153153
<!--<rule ref="category/java/design.xml/LoosePackageCoupling" />-->
154154
<rule ref="category/java/design.xml/ModifiedCyclomaticComplexity" />
155-
<rule ref="category/java/design.xml/NcssConstructorCount" />
156-
<rule ref="category/java/design.xml/NcssMethodCount" />
157-
<rule ref="category/java/design.xml/NcssTypeCount" />
155+
<rule ref="category/java/design.xml/NcssCount" />
158156
<rule ref="category/java/design.xml/NPathComplexity" />
159157
<rule ref="category/java/design.xml/SignatureDeclareThrowsException" />
160158
<rule ref="category/java/design.xml/SimplifiedTernary" />

0 commit comments

Comments
 (0)