Skip to content

Commit acb4085

Browse files
authored
Merge pull request #839 from uhafner/spotbugs-pmd-skip
Skip all PMD invocations on profile skip
2 parents 2f70cea + c264e29 commit acb4085

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pom.xml

+9-6
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@
6060
<java.version>11</java.version>
6161
<module.name>undefined</module.name>
6262

63-
<codingstyle.config.version>4.8.0</codingstyle.config.version>
64-
<codingstyle.library.version>4.8.0</codingstyle.library.version>
63+
<pmd.skip>false</pmd.skip>
64+
65+
<codingstyle.config.version>4.9.0</codingstyle.config.version>
66+
<codingstyle.library.version>4.9.0</codingstyle.library.version>
6567

6668
<!-- Project Dependencies Configuration -->
6769
<spotbugs.version>4.8.5</spotbugs.version>
@@ -786,7 +788,7 @@
786788
</rulesets>
787789
<includeTests>false</includeTests>
788790
<minimumTokens>50</minimumTokens>
789-
<skip>false</skip>
791+
<skip>${pmd.skip}</skip>
790792
</configuration>
791793
</execution>
792794
<execution>
@@ -809,7 +811,7 @@
809811
<excludeRoot>${project.build.directory}/generated-test-sources/test-annotations</excludeRoot>
810812
<excludeRoot>${project.build.directory}/generated-test-sources/assertj-assertions</excludeRoot>
811813
</excludeRoots>
812-
<skip>false</skip>
814+
<skip>${pmd.skip}</skip>
813815
</configuration>
814816
</execution>
815817
<execution>
@@ -833,6 +835,7 @@
833835
<includes>
834836
<include>**/*.js</include>
835837
</includes>
838+
<skip>${pmd.skip}</skip>
836839
</configuration>
837840
</execution>
838841
</executions>
@@ -894,7 +897,6 @@
894897
<artifactId>spotbugs-maven-plugin</artifactId>
895898
<version>${spotbugs-maven-plugin.version}</version>
896899
<configuration>
897-
<failOnError>true</failOnError>
898900
<xmlOutput>true</xmlOutput>
899901
<threshold>Low</threshold>
900902
<failThreshold>Low</failThreshold>
@@ -1046,7 +1048,8 @@
10461048
<maven.test.failure.ignore>true</maven.test.failure.ignore>
10471049
<checkstyle.failOnViolation>false</checkstyle.failOnViolation>
10481050
<pmd.failOnViolation>false</pmd.failOnViolation>
1049-
<spotbugs.maxAllowedViolations>10000000</spotbugs.maxAllowedViolations>
1051+
<spotbugs.failOnError>false</spotbugs.failOnError>
1052+
<gpg.skip>true</gpg.skip>
10501053
</properties>
10511054
</profile>
10521055
<profile>

0 commit comments

Comments
 (0)