You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2019/07/09 20:02:29 UTC

[cxf-build-utils] branch master updated: Update PMD rulesets to work ok with latest pmd

This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-build-utils.git


The following commit(s) were added to refs/heads/master by this push:
     new ee90a11  Update PMD rulesets to work ok with latest pmd
ee90a11 is described below

commit ee90a11ec142b3fc82fffc128f090ab31813782d
Author: Daniel Kulp <dk...@apache.org>
AuthorDate: Tue Jul 9 14:56:56 2019 -0400

    Update PMD rulesets to work ok with latest pmd
---
 buildtools/src/main/resources/cxf-pmd-ruleset.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/buildtools/src/main/resources/cxf-pmd-ruleset.xml b/buildtools/src/main/resources/cxf-pmd-ruleset.xml
index 5e83cb8..f1afcc3 100644
--- a/buildtools/src/main/resources/cxf-pmd-ruleset.xml
+++ b/buildtools/src/main/resources/cxf-pmd-ruleset.xml
@@ -31,6 +31,7 @@
     <exclude-pattern>.*.class</exclude-pattern>
     <exclude-pattern>.*.txt</exclude-pattern>
     <exclude-pattern>.*NOTICE</exclude-pattern>
+    <exclude-pattern>.*generated.*</exclude-pattern>
 
     <rule ref="category/java/bestpractices.xml">
         <exclude name="AbstractClassWithoutAbstractMethod" />
@@ -39,10 +40,12 @@
         <exclude name="ArrayIsStoredDirectly" />
         <exclude name="AvoidPrintStackTrace" />
         <exclude name="AvoidReassigningParameters" />
+        <exclude name="AvoidReassigningLoopVariables" />
         <exclude name="AvoidStringBufferField" />
         <exclude name="AvoidUsingHardCodedIP" />
         <exclude name="ConstantsInInterface" />
         <exclude name="ForLoopCanBeForeach" />
+        <exclude name="ForLoopVariableCount" />
         <exclude name="GuardLogStatement" />
         <exclude name="JUnitAssertionsShouldIncludeMessage" />
         <exclude name="JUnitTestContainsTooManyAsserts" />
@@ -71,6 +74,7 @@
         <exclude name="AvoidRethrowingException" />
         <exclude name="AvoidThrowingNullPointerException" />
         <exclude name="AvoidThrowingRawExceptionTypes" />
+        <exclude name="AvoidUncheckedExceptionsInSignatures" />
         <exclude name="CouplingBetweenObjects" />
         <exclude name="CyclomaticComplexity" />
         <exclude name="DataClass" />