You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2020/12/10 04:35:41 UTC

[commons-geometry] branch master updated (4573154 -> ef65dd7)

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

mattjuntunen pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git.


    from 4573154  GEOMETRY-106 - Refine Module
     new 026669a  updating checkstyle plugin version to 3.1.1 and excluding generated jmh source files
     new ef65dd7  bumping pmd and spotbugs versions; using managed antrun version

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                            | 18 ++++----
 .../resources/spotbugs/spotbugs-exclude-filter.xml | 50 +---------------------
 2 files changed, 11 insertions(+), 57 deletions(-)


[commons-geometry] 02/02: bumping pmd and spotbugs versions; using managed antrun version

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ef65dd7f71719866f1d16c56c3267981ff1117f6
Author: Matt Juntunen <ma...@apache.org>
AuthorDate: Wed Dec 9 23:35:15 2020 -0500

    bumping pmd and spotbugs versions; using managed antrun version
---
 pom.xml                                            | 12 +++---
 .../resources/spotbugs/spotbugs-exclude-filter.xml | 50 +---------------------
 2 files changed, 8 insertions(+), 54 deletions(-)

diff --git a/pom.xml b/pom.xml
index 3f64fce..061600e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,16 +53,16 @@
     <maven.compiler.source>1.8</maven.compiler.source>
     <maven.compiler.target>1.8</maven.compiler.target>
     <geometry.pmd.version>3.13.0</geometry.pmd.version>
-    <geometry.pmd.dep.version>6.21.0</geometry.pmd.dep.version>
+    <geometry.pmd.dep.version>6.29.0</geometry.pmd.dep.version>
     <geometry.checkstyle.version>3.1.1</geometry.checkstyle.version>
     <geometry.checkstyle.dep.version>8.29</geometry.checkstyle.dep.version>
     <geometry.mathjax.version>2.7.2</geometry.mathjax.version>
     <!-- Workaround to avoid duplicating config files. -->
     <geometry.parent.dir>${basedir}</geometry.parent.dir>
 
-    <commons.spotbugs.version>3.1.12</commons.spotbugs.version>
+    <commons.spotbugs.version>4.1.4</commons.spotbugs.version>
     <!-- Required for Java 13 build -->
-    <commons.spotbugs.dep.version>4.0.0</commons.spotbugs.dep.version>
+    <commons.spotbugs.dep.version>4.2.0</commons.spotbugs.dep.version>
 
     <!-- Fix to avoid JXR 3.0.0 forking the lifecycle phase 'compile' during site report
        jxr:aggregate. If compile is forked, the dist-archive build fails when attempting
@@ -304,7 +304,7 @@
             <ruleset>${geometry.parent.dir}/src/main/resources/pmd/pmd-ruleset.xml</ruleset>
           </rulesets>
           <excludeRoots>
-            <excludeRoot>target/generated-sources</excludeRoot>
+            <excludeRoot>target/generated-sources/annotations</excludeRoot>
           </excludeRoots>
         </configuration>
       </plugin>
@@ -446,6 +446,9 @@
           <rulesets>
             <ruleset>${geometry.parent.dir}/src/main/resources/pmd/pmd-ruleset.xml</ruleset>
           </rulesets>
+          <excludeRoots>
+            <excludeRoot>target/generated-sources/annotations</excludeRoot>
+          </excludeRoots>
         </configuration>
         <reportSets>
           <reportSet>
@@ -509,7 +512,6 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-antrun-plugin</artifactId>
-            <version>1.7</version>
             <executions>
               <execution>
                 <id>prepare-checkout</id>
diff --git a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
index 31044d2..abff0bd 100644
--- a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
+++ b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
@@ -26,54 +26,6 @@
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="https://github.com/spotbugs/filter/3.1.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
 
-  <Class name="~.*\.jmh\.generated\..*" />
-
-  <Match>
-    <!-- This is a false positive in JDK 11. See https://github.com/spotbugs/spotbugs/issues/756 -->
-    <Class name="org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree"/>
-    <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
-  </Match>
-
-  <Match>
-    <!-- This is a false positive in JDK 11. See https://github.com/spotbugs/spotbugs/issues/756 -->
-    <Class name="org.apache.commons.geometry.euclidean.threed.RegionBSPTree3D$PartitionedRegionBuilder3D" />
-    <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
-  </Match>
-
-  <Match>
-    <!-- This is a false positive in JDK 11. See https://github.com/spotbugs/spotbugs/issues/756 -->
-    <Class name="org.apache.commons.geometry.euclidean.threed.BoundarySourceBoundsBuilder3D" />
-    <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
-  </Match>
-
-  <Match>
-    <!-- This is a false positive in JDK 11. See https://github.com/spotbugs/spotbugs/issues/756 -->
-    <Class name="org.apache.commons.geometry.euclidean.threed.BoundarySourceLinecaster3D" />
-    <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
-  </Match>
-
-  <Match>
-    <!-- This is a false positive in JDK 11. See https://github.com/spotbugs/spotbugs/issues/756 -->
-    <Class name="org.apache.commons.geometry.euclidean.threed.mesh.SimpleTriangleMesh" />
-    <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
-  </Match>
-
-  <Match>
-    <!-- This is a false positive in JDK 11. See https://github.com/spotbugs/spotbugs/issues/756 -->
-    <Class name="org.apache.commons.geometry.euclidean.twod.RegionBSPTree2D$PartitionedRegionBuilder2D" />
-    <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
-  </Match>
-
-  <Match>
-    <!-- This is a false positive in JDK 11. See https://github.com/spotbugs/spotbugs/issues/756 -->
-    <Class name="org.apache.commons.geometry.euclidean.twod.BoundarySourceBoundsBuilder2D" />
-    <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
-  </Match>
-
-  <Match>
-    <!-- This is a false positive in JDK 11. See https://github.com/spotbugs/spotbugs/issues/756 -->
-    <Class name="org.apache.commons.geometry.euclidean.twod.BoundarySourceLinecaster2D" />
-    <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
-  </Match>
+  <Class name="~.*\.jmh_generated\..*" />
 
 </FindBugsFilter>


[commons-geometry] 01/02: updating checkstyle plugin version to 3.1.1 and excluding generated jmh source files

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 026669ac56ed216ff4fb29ffeae06b53a9dbc544
Author: Matt Juntunen <ma...@apache.org>
AuthorDate: Wed Dec 9 22:51:13 2020 -0500

    updating checkstyle plugin version to 3.1.1 and excluding generated jmh source files
---
 pom.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1c7480d..3f64fce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
     <maven.compiler.target>1.8</maven.compiler.target>
     <geometry.pmd.version>3.13.0</geometry.pmd.version>
     <geometry.pmd.dep.version>6.21.0</geometry.pmd.dep.version>
-    <geometry.checkstyle.version>3.1.0</geometry.checkstyle.version>
+    <geometry.checkstyle.version>3.1.1</geometry.checkstyle.version>
     <geometry.checkstyle.dep.version>8.29</geometry.checkstyle.dep.version>
     <geometry.mathjax.version>2.7.2</geometry.mathjax.version>
     <!-- Workaround to avoid duplicating config files. -->
@@ -268,7 +268,7 @@
           <logViolationsToConsole>true</logViolationsToConsole>
           <failOnViolation>true</failOnViolation>
           <resourceExcludes>NOTICE.txt,LICENSE.txt,**/pom.properties,**/resolver-status.properties,**/sha512.properties</resourceExcludes>
-          <excludes>**/generated/**.java</excludes>
+          <excludes>**/generated/**.java,**/jmh_generated/**.java</excludes>
         </configuration>
         <executions>
           <execution>
@@ -424,7 +424,7 @@
           <suppressionsLocation>${geometry.parent.dir}/src/main/resources/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
           <enableRulesSummary>false</enableRulesSummary>
           <includeResources>false</includeResources>
-          <excludes>**/generated/**.java</excludes>
+          <excludes>**/generated/**.java,**/jmh_generated/**.java</excludes>
         </configuration>
         <reportSets>
           <reportSet>