PMD: Allow certain violations in Fraction/BigFraction
Allow field ZERO and ONE to match method name in Fraction.
Allow GodClass and ExcessiveMethodLength for BigFraction.
<rule ref="category/java/design.xml/GodClass">
<properties>
<property name="violationSuppressXPath"
- value="//ClassOrInterfaceType[@Image='Fraction']"/>
+ value="//ClassOrInterfaceType[@Image='Fraction'
+ or @Image='BigFraction']"/>
</properties>
</rule>
<rule ref="category/java/errorprone.xml/AvoidFieldNameMatchingMethodName">
<properties>
<property name="violationSuppressXPath"
- value="//ClassOrInterfaceType[@Image='Complex']"/>
+ value="//ClassOrInterfaceType[@Image='Complex'
+ or @Image='Fraction'
+ or @Image='BigFraction']"/>
</properties>
</rule>
<rule ref="category/java/design.xml/ExcessiveMethodLength">
<properties>
<property name="violationSuppressXPath"
- value="//ClassOrInterfaceType[@Image='Complex']"/>
+ value="//ClassOrInterfaceType[@Image='Complex'
+ or @Image='BigFraction']"/>
</properties>
</rule>
