aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorvasylieva <valeria.vasylieva@gmail.com>2017-06-29 19:35:44 +0300
committerRoman Ivanov <romani@users.noreply.github.com>2017-06-29 20:49:22 -0700
commit9c2228b0bb83ab216ea4aaa707b3652da20a4338 (patch)
tree761c81e3c8e7d508bf6da71fa416d05c121763b4 /pom.xml
parent7e828cfab4aff0bb23bf171c339587ad8c33e65a (diff)
downloadcheckstyle-9c2228b0bb83ab216ea4aaa707b3652da20a4338.tar.gz
Issue #4373: add Spotbugs to the project
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 43bcb625c..5f0ea2bfa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -200,6 +200,7 @@
<antlr4.version>4.7</antlr4.version>
<maven.site.plugin.version>3.6</maven.site.plugin.version>
<maven.findbugs.plugin.version>3.0.4</maven.findbugs.plugin.version>
+ <maven.spotbugs.plugin.version>3.0.5</maven.spotbugs.plugin.version>
<maven.pmd.plugin.version>3.8</maven.pmd.plugin.version>
<pmd.version>5.7.0</pmd.version>
<maven.jacoco.plugin.version>0.7.9</maven.jacoco.plugin.version>
@@ -396,6 +397,18 @@
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.hazendaz.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <version>${maven.spotbugs.plugin.version}</version>
+ <configuration>
+ <effort>Max</effort>
+ <threshold>Low</threshold>
+ <excludeFilterFile>config/findbugs-exclude.xml</excludeFilterFile>
+ <findbugsXmlOutputDirectory>target/spotbugsreports</findbugsXmlOutputDirectory>
+ </configuration>
+ </plugin>
+
<!-- This plugin's configuration is used to store Eclipse
m2e settings only. It has no influence on the Maven build itself.
-->
@@ -968,6 +981,19 @@
</plugin>
<plugin>
+ <groupId>com.github.hazendaz.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <version>${maven.spotbugs.plugin.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<version>1.0.1</version>
@@ -1208,6 +1234,12 @@
</plugin>
<plugin>
+ <groupId>com.github.hazendaz.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <version>${maven.spotbugs.plugin.version}</version>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-linkcheck-plugin</artifactId>
<version>1.2</version>