You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2025/09/22 11:56:44 UTC

(commons-statistics) 03/05: pmd change: allow increment/decrement in assignment

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-statistics.git

commit b79ac30943313b8da7a891c2a4b55d467db416f7
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Mon Sep 22 12:52:13 2025 +0100

    pmd change: allow increment/decrement in assignment
---
 src/conf/pmd/pmd-ruleset.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/pmd/pmd-ruleset.xml b/src/conf/pmd/pmd-ruleset.xml
index a1b407c..726a5b4 100644
--- a/src/conf/pmd/pmd-ruleset.xml
+++ b/src/conf/pmd/pmd-ruleset.xml
@@ -237,6 +237,7 @@
   </rule>
   <rule ref="category/java/errorprone.xml/AssignmentInOperand">
     <properties>
+      <property name="allowIncrementDecrement" value="true" />
       <property name="violationSuppressXPath"
         value="./ancestor-or-self::ClassDeclaration[@SimpleName='NaNTransformers']"/>
     </properties>