commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherb...@apache.org
Subject [commons-geometry] 03/08: Update PMD rules to be more lenient.
Date Tue, 18 Feb 2020 00:16:16 GMT
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-geometry.git

commit 67ade11087e24bbdc6504b6ae9825ab3246928a6
Author: Alex Herbert <a.herbert@sussex.ac.uk>
AuthorDate: Mon Feb 17 23:47:08 2020 +0000

    Update PMD rules to be more lenient.
---
 src/main/resources/pmd/pmd-ruleset.xml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/main/resources/pmd/pmd-ruleset.xml b/src/main/resources/pmd/pmd-ruleset.xml
index 2caa5cf..92d8907 100644
--- a/src/main/resources/pmd/pmd-ruleset.xml
+++ b/src/main/resources/pmd/pmd-ruleset.xml
@@ -36,6 +36,8 @@
     <exclude name="AbstractNaming" />
     <exclude name="UselessParentheses" />
     <exclude name="AtLeastOneConstructor" />
+    <exclude name="OnlyOneReturn" />
+    <exclude name="UseUnderscoresInNumericLiterals" />
     <exclude name="GenericsNaming" />
   </rule>
   <rule ref="category/java/design.xml">
@@ -48,7 +50,10 @@
     <exclude name="CommentSize" />
   </rule>
   <rule ref="category/java/errorprone.xml">
-    <!-- <exclude name="..." /> -->
+    <exclude name="BeanMembersShouldSerialize" />
+    <!-- This rule is known to be poor with Java 5 and later:
+      https://github.com/pmd/pmd/issues/873 -->
+    <exclude name="DataflowAnomalyAnalysis" />
   </rule>
   <rule ref="category/java/multithreading.xml">
     <!-- <exclude name="..." /> -->


Mime
View raw message