Skip to content

Commit 631575b

Browse files
committed
Ignore several useful list implementations in LooseCoupling.
1 parent 2ff7abd commit 631575b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

etc/pmd-java-configuration.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<rule ref="category/java/bestpractices.xml">
1010
<exclude name="AccessorMethodGeneration"/>
11+
<exclude name="LooseCoupling"/>
1112
<exclude name="GuardLogStatement"/>
1213
<exclude name="JUnit4TestShouldUseTestAnnotation"/>
1314
<exclude name="JUnit5TestShouldBePackagePrivate"/>
@@ -17,6 +18,11 @@
1718
<exclude name="LiteralsFirstInComparisons"/>
1819
<exclude name="UnusedPrivateMethod"/>
1920
</rule>
21+
<rule ref="category/java/bestpractices.xml/LooseCoupling">
22+
<properties>
23+
<property name="allowedTypes" value="java.util.Properties, java.util.jar.Attributes, net.minidev.json.JSONArray, org.jsoup.select.Elements, edu.hm.hafner.util.LineRangeList" />
24+
</properties>
25+
</rule>
2026
<rule ref="category/java/codestyle.xml">
2127
<exclude name="AtLeastOneConstructor"/>
2228
<exclude name="ClassNamingConventions"/>

0 commit comments

Comments
 (0)