Skip to content

Commit 84f91c6

Browse files
authored
Merge pull request #1770 from uhafner/ignore-serializable-loose-coupling
Ignore `LooseCoupling` rule for serializable objects
2 parents f87dd3e + 722b1c8 commit 84f91c6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

etc/pmd-java-configuration.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<rule ref="category/java/bestpractices.xml/LooseCoupling">
2222
<properties>
2323
<property name="allowedTypes" value="java.util.Properties, java.util.Stack, java.util.jar.Attributes, net.minidev.json.JSONArray, hudson.util.ListBoxModel, hudson.util.ComboBoxModel, hudson.DescriptorExtensionList, hudson.EnvVars, org.jsoup.select.Elements, edu.hm.hafner.util.LineRangeList" />
24+
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[1][pmd-java:typeIs('java.io.Serializable')]"/>
2425
</properties>
2526
</rule>
2627
<rule ref="category/java/codestyle.xml">

0 commit comments

Comments
 (0)