Skip to content

Commit

Permalink
[SpotBugs]Enable spotbugs for pulsar-zookeeper (apache#8800)
Browse files Browse the repository at this point in the history
Fix: https://github.com/streamnative/pulsar/issues/1804

This PR enable spotbugs for moduel `pulsar-zookeeper`
  • Loading branch information
Renkai authored Dec 7, 2020
1 parent 8089f36 commit f62f12a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pulsar-zookeeper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,23 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-maven-plugin.version}</version>
<configuration>
<excludeFilterFile>${basedir}/src/main/resources/findbugsExclude.xml</excludeFilterFile>
</configuration>
<executions>
<execution>
<id>spotbugs</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down
26 changes: 26 additions & 0 deletions pulsar-zookeeper/src/main/resources/findbugsExclude.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
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>
<Match>
<Class name="~org.apache.zookeeper.*"/>
<Bug pattern="DM_EXIT,DM_DEFAULT_ENCODING"/>
</Match>
</FindBugsFilter>

0 comments on commit f62f12a

Please sign in to comment.