Configure SpotBugs
This commit is contained in:
27
pom.xml
27
pom.xml
@@ -549,6 +549,7 @@ under the License.
|
|||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configLocation>${basedir}/checkstyle.xml</configLocation>
|
<configLocation>${basedir}/checkstyle.xml</configLocation>
|
||||||
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
||||||
<enableRulesSummary>false</enableRulesSummary>
|
<enableRulesSummary>false</enableRulesSummary>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -563,7 +564,20 @@ under the License.
|
|||||||
</rulesets>
|
</rulesets>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.spotbugs</groupId>
|
||||||
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<excludeFilterFile>src/conf/spotbugs-excludes.xml</excludeFilterFile>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.h3xstream.findsecbugs</groupId>
|
||||||
|
<artifactId>findsecbugs-plugin</artifactId>
|
||||||
|
<version>${findsecbugs.version}</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@@ -661,6 +675,16 @@ under the License.
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.github.spotbugs</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>spotbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<excludeFilterFile>src/conf/spotbugs-excludes.xml</excludeFilterFile>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.h3xstream.findsecbugs</groupId>
|
||||||
|
<artifactId>findsecbugs-plugin</artifactId>
|
||||||
|
<version>${findsecbugs.version}</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@@ -706,6 +730,7 @@ under the License.
|
|||||||
<log4j2.version>2.21.1</log4j2.version>
|
<log4j2.version>2.21.1</log4j2.version>
|
||||||
<logback.version>1.3.11</logback.version>
|
<logback.version>1.3.11</logback.version>
|
||||||
<slf4j.version>2.0.9</slf4j.version>
|
<slf4j.version>2.0.9</slf4j.version>
|
||||||
|
<findsecbugs.version>1.12.0</findsecbugs.version>
|
||||||
|
|
||||||
<commons.osgi.import>
|
<commons.osgi.import>
|
||||||
javax.servlet;version="[2.1.0, 3.0.0)";resolution:=optional,
|
javax.servlet;version="[2.1.0, 3.0.0)";resolution:=optional,
|
||||||
|
|||||||
18
src/conf/spotbugs-excludes.xml
Normal file
18
src/conf/spotbugs-excludes.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
|
this work for additional information regarding copyright ownership.
|
||||||
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
|
(the "License"); you may not use this file except in compliance with
|
||||||
|
the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<FindBugsFilter></FindBugsFilter>
|
||||||
Reference in New Issue
Block a user