You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/04/19 03:35:07 UTC

[shardingsphere] branch master updated: Refactor rule checks for pmd (#25223)

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

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e7eb42153a Refactor rule checks for pmd (#25223)
6e7eb42153a is described below

commit 6e7eb42153abad4bdf0ea6356d7f17b66efc06c2
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Wed Apr 19 11:34:59 2023 +0800

    Refactor rule checks for pmd (#25223)
---
 src/resources/pmd.xml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/resources/pmd.xml b/src/resources/pmd.xml
index 75ae4285d9a..43b825120e7 100644
--- a/src/resources/pmd.xml
+++ b/src/resources/pmd.xml
@@ -39,7 +39,7 @@
     <rule ref="category/java/documentation.xml/CommentSize">
         <properties>
             <property name="maxLines" value="40" />
-            <property name="maxLineLength" value="160" />
+            <property name="maxLineLength" value="200" />
         </properties>
     </rule>
     <rule ref="category/java/design.xml/TooManyMethods">
@@ -52,4 +52,12 @@
             <property name="ignoredAnnotations" value="lombok.NoArgsConstructor | org.springframework.boot.autoconfigure.SpringBootApplication" />
         </properties>
     </rule>
+    <rule ref="category/java/errorprone.xml/AssignmentInOperand">
+        <properties>
+            <property name="allowIf" value="true" />
+            <property name="allowFor" value="true" />
+            <property name="allowWhile" value="true" />
+            <property name="allowIncrementDecrement" value="true" />
+        </properties>
+    </rule>
 </ruleset>