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

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit a8d6ac78ccd993e69848b6b7a207a253b9da16c1
Author: aherbert <[email protected]>
AuthorDate: Mon Aug 2 13:41:13 2021 +0100

    Update PMD
    
    pmd-core 6.21.0 -> 6.37.0
    pmd-plugin 3.13.0 -> 3.14.0
---
 pom.xml                                |  4 ++--
 src/main/resources/pmd/pmd-ruleset.xml | 15 ++++++++-------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/pom.xml b/pom.xml
index 591ed01..0be4644 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,8 +53,8 @@
     <commons.encoding>UTF-8</commons.encoding>
     <maven.compiler.source>1.6</maven.compiler.source>
     <maven.compiler.target>1.6</maven.compiler.target>
-    <rng.pmd.version>3.13.0</rng.pmd.version>
-    <rng.pmd.dep.version>6.21.0</rng.pmd.dep.version>
+    <rng.pmd.version>3.14.0</rng.pmd.version>
+    <rng.pmd.dep.version>6.37.0</rng.pmd.dep.version>
     <rng.checkstyle.version>3.1.0</rng.checkstyle.version>
     <rng.checkstyle.dep.version>8.29</rng.checkstyle.dep.version>
     
<rng.mathjax.url>https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js</rng.mathjax.url>
diff --git a/src/main/resources/pmd/pmd-ruleset.xml 
b/src/main/resources/pmd/pmd-ruleset.xml
index 9d95e9f..bc8c631 100644
--- a/src/main/resources/pmd/pmd-ruleset.xml
+++ b/src/main/resources/pmd/pmd-ruleset.xml
@@ -186,6 +186,14 @@
       <property name="violationSuppressXPath" 
value="//ClassOrInterfaceDeclaration[@SimpleName='CompositeSamplers']"/>
     </properties>
   </rule>
+  <rule ref="category/java/design.xml/CognitiveComplexity">
+    <properties>
+      <!-- Increase from default of 200 -->
+      <property name="violationSuppressXPath"
+        value="//ClassOrInterfaceDeclaration[@SimpleName='ChengBetaSampler' or 
@SimpleName='LargeMeanPoissonSampler'
+          or @SimpleName='ZigguratSampler']"/>
+    </properties>
+  </rule>
 
   <rule ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition">
     <properties>
@@ -212,11 +220,4 @@
     </properties>
   </rule>
 
-  <rule ref="category/java/performance.xml/AvoidUsingShortType">
-    <properties>
-      <!-- Short datatype is used to optimise 16-bit storage. -->
-      <property name="violationSuppressXPath" 
value="//ClassOrInterfaceDeclaration[@SimpleName='MarsagliaTsangWangDiscreteSampler']"/>
-    </properties>
-  </rule>
-
 </ruleset>

Reply via email to