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

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


The following commit(s) were added to refs/heads/master by this push:
     new 230ff73a Suppress PMD error for internal class
230ff73a is described below

commit 230ff73a7477fe635f9ad912392dc9983803b314
Author: Alex Herbert <[email protected]>
AuthorDate: Sun Oct 18 00:21:39 2026 +0100

    Suppress PMD error for internal class
---
 src/conf/pmd/pmd-ruleset.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/conf/pmd/pmd-ruleset.xml b/src/conf/pmd/pmd-ruleset.xml
index 1dfcc76a..ffb7b922 100644
--- a/src/conf/pmd/pmd-ruleset.xml
+++ b/src/conf/pmd/pmd-ruleset.xml
@@ -81,6 +81,13 @@
       <property name="violationSuppressXPath" 
value="./ancestor-or-self::ClassDeclaration[@SimpleName='NaNTransformers']"/>
     </properties>
   </rule>
+  <rule ref="category/java/bestpractices.xml/MethodReturnsInternalArray">
+    <properties>
+      <!-- Internal helper class Candidates returns the data array -->
+      <property name="violationSuppressXPath"
+        
value="./ancestor-or-self::ClassDeclaration[@SimpleName='UnconditionedExactTest']"/>
+    </properties>
+  </rule>
 
   <rule ref="category/java/codestyle.xml/ShortMethodName">
     <properties>

Reply via email to