ACCUMULO-2296 Exclude thrift-generated sources from findbugs report

Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/b76c8f4c
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/b76c8f4c
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/b76c8f4c

Branch: refs/heads/master
Commit: b76c8f4c5388499304a1a66574da30b573c28215
Parents: b33559c
Author: Josh Elser <els...@apache.org>
Authored: Fri Jan 31 21:54:41 2014 -0500
Committer: Josh Elser <els...@apache.org>
Committed: Fri Jan 31 21:54:41 2014 -0500

----------------------------------------------------------------------
 contrib/findbugs-exclude.xml | 42 +++++++++++++++++++++++++++++++++++++++
 pom.xml                      |  1 +
 2 files changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/b76c8f4c/contrib/findbugs-exclude.xml
----------------------------------------------------------------------
diff --git a/contrib/findbugs-exclude.xml b/contrib/findbugs-exclude.xml
new file mode 100644
index 0000000..89fa658
--- /dev/null
+++ b/contrib/findbugs-exclude.xml
@@ -0,0 +1,42 @@
+<!--
+  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\.accumulo\.core\.client\.impl\.thrift\..*" />
+    </Match>
+    <Match>
+        <Class name="~org\.apache\.accumulo\.core\.data\.thrift\..*" />
+    </Match>
+    <Match>
+        <Class name="~org\.apache\.accumulo\.core\.gc\.thrift\..*" />
+    </Match>
+    <Match>
+        <Class name="~org\.apache\.accumulo\.core\.master\.thrift\..*" />
+    </Match>
+    <Match>
+        <Class name="~org\.apache\.accumulo\.core\.security\.thrift\..*" />
+    </Match>
+    <Match>
+        <Class name="~org\.apache\.accumulo\.core\.tabletserver\.thrift\..*" />
+    </Match>
+    <Match>
+        <Class name="~org\.apache\.accumulo\.trace\.thrift\..*" />
+    </Match>
+    <Match>
+        <Class name="~org\.apache\.accumulo\.proxy\.thrift\..*" />
+    </Match>
+</FindBugsFilter>

http://git-wip-us.apache.org/repos/asf/accumulo/blob/b76c8f4c/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 6508147..5f66d28 100644
--- a/pom.xml
+++ b/pom.xml
@@ -810,6 +810,7 @@
         <artifactId>findbugs-maven-plugin</artifactId>
         <version>2.5.2</version>
         <configuration>
+          <excludeFilterFile>contrib/findbugs-exclude.xml</excludeFilterFile>
           <findbugsXmlOutput>true</findbugsXmlOutput>
           <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
           <xmlOutput>true</xmlOutput>

Reply via email to