fix for PMD logging-java rules. Issue #870

This commit is contained in:
Roman Ivanov 2015-04-26 10:33:29 -07:00
parent a033b87e5e
commit e971fcd9b5
1 changed files with 12 additions and 1 deletions

View File

@ -154,7 +154,18 @@
</rule>
<rule ref="rulesets/java/junit.xml"/>
<rule ref="rulesets/java/logging-jakarta-commons.xml"/>
<!--<rule ref="rulesets/java/logging-java.xml"/>-->
<rule ref="rulesets/java/logging-java.xml">
<!-- till #596 -->
<exclude name="AvoidPrintStackTrace"/>
</rule>
<rule ref="rulesets/java/logging-java.xml/SystemPrintln">
<properties>
<!-- it is ok to use println in CLI class -->
<property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[@Image='Main']"/>
</properties>
</rule>
<rule ref="rulesets/java/migrating.xml"/>
<rule ref="rulesets/java/naming.xml">
<!-- till #983 -->