Skip to content

Commit

Permalink
Merge pull request #978 from uhafner/ignore-list-implementations
Browse files Browse the repository at this point in the history
Ignore list implementations
  • Loading branch information
uhafner authored Apr 9, 2024
2 parents 2ff7abd + 49c2888 commit f79e019
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/pmd-java-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<rule ref="category/java/bestpractices.xml">
<exclude name="AccessorMethodGeneration"/>
<exclude name="LooseCoupling"/>
<exclude name="GuardLogStatement"/>
<exclude name="JUnit4TestShouldUseTestAnnotation"/>
<exclude name="JUnit5TestShouldBePackagePrivate"/>
Expand All @@ -17,6 +18,11 @@
<exclude name="LiteralsFirstInComparisons"/>
<exclude name="UnusedPrivateMethod"/>
</rule>
<rule ref="category/java/bestpractices.xml/LooseCoupling">
<properties>
<property name="allowedTypes" value="java.util.Properties, java.util.jar.Attributes, net.minidev.json.JSONArray, org.jsoup.select.Elements, edu.hm.hafner.util.LineRangeList" />
</properties>
</rule>
<rule ref="category/java/codestyle.xml">
<exclude name="AtLeastOneConstructor"/>
<exclude name="ClassNamingConventions"/>
Expand Down
1 change: 1 addition & 0 deletions etc/pmd-tests-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<exclude name="FinalFieldCouldBeStatic"/>
<exclude name="LawOfDemeter"/>
<exclude name="LoosePackageCoupling"/>
<exclude name="GodClass"/>
<exclude name="SignatureDeclareThrowsException"/>
<exclude name="SimplifyBooleanReturns"/>
<exclude name="TooManyMethods"/>
Expand Down

0 comments on commit f79e019

Please sign in to comment.