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

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


The following commit(s) were added to refs/heads/master by this push:
     new a1e0382ae ExcessiveMethodLength/ClassLength are deprecated
a1e0382ae is described below

commit a1e0382ae47d2e42de493ae7bb9aa35bfca7a41c
Author: Sebb <s...@apache.org>
AuthorDate: Sat Dec 23 22:54:30 2023 +0000

    ExcessiveMethodLength/ClassLength are deprecated
    
    Too dependent on coding style ... [skip ci]
---
 src/main/resources/pmd/pmd-ruleset.xml | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/src/main/resources/pmd/pmd-ruleset.xml 
b/src/main/resources/pmd/pmd-ruleset.xml
index 000228d76..36d98f911 100644
--- a/src/main/resources/pmd/pmd-ruleset.xml
+++ b/src/main/resources/pmd/pmd-ruleset.xml
@@ -97,14 +97,6 @@
                or @Image='BigFraction']"/>
     </properties>
   </rule>
-  <rule ref="category/java/design.xml/ExcessiveClassLength">
-    <properties>
-      <property name="violationSuppressXPath"
-        value="//ClassOrInterfaceType[@Image='Complex'
-               or @Image='Fraction'
-               or @Image='BigFraction']"/>
-    </properties>
-  </rule>
   <rule ref="category/java/design.xml/GodClass">
     <properties>
       <property name="violationSuppressXPath"
@@ -133,15 +125,6 @@
     </properties>
   </rule>
 
-  <!-- Long methods are based on reference implementations. -->
-  <rule ref="category/java/design.xml/ExcessiveMethodLength">
-    <properties>
-      <property name="violationSuppressXPath"
-        value="//ClassOrInterfaceType[@Image='Complex'
-               or @Image='BigFraction']"/>
-    </properties>
-  </rule>
-
   <!-- Complex parse deliberately catches and re-throws a new 
NumberFormatException
        to include the full input string in the exception message. -->
   <rule ref="category/java/design.xml/AvoidThrowingNewInstanceOfSameException">

Reply via email to