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

commit 991c8cef00342bd6de5fc47b82211a00265e5573
Author: aherbert <aherb...@apache.org>
AuthorDate: Tue Apr 25 14:20:06 2023 +0100

    PMD: Update magic numbers to include type specific canonical constants
---
 src/main/resources/pmd/pmd-ruleset.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/resources/pmd/pmd-ruleset.xml 
b/src/main/resources/pmd/pmd-ruleset.xml
index f06d55ad..724dc8f5 100644
--- a/src/main/resources/pmd/pmd-ruleset.xml
+++ b/src/main/resources/pmd/pmd-ruleset.xml
@@ -149,7 +149,7 @@
 
   <rule ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition">
     <properties>
-      <property name="ignoreMagicNumbers" value="-1,0,1" />
+      <property name="ignoreMagicNumbers" value="-1,0,1,-1L,0L,1L,0.0" />
       <property name="violationSuppressXPath"
         
value="./ancestor-or-self::ClassOrInterfaceDeclaration[@SimpleName='LogGamma'
                or @SimpleName='LogGammaSum'

Reply via email to