Skip to content

Commit d83fc00

Browse files
committed
Add findbugs exclude filter.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1439981 13f79535-47bb-0310-9956-ffa450edef68
1 parent b106dee commit d83fc00

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@
237237
<configuration>
238238
<threshold>Normal</threshold>
239239
<effort>Default</effort>
240+
<excludeFilterFile>${basedir}/src/conf/findbugs-exclude-filter.xml</excludeFilterFile>
240241
</configuration>
241242
</plugin>
242243
<plugin>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
19+
<!--
20+
This file contains some false positive bugs detected by findbugs. Their
21+
false positive nature has been analyzed individually and they have been
22+
put here to instruct findbugs it must ignore them.
23+
-->
24+
<FindBugsFilter>
25+
26+
<!-- default encoding is intended when writing to System.out -->
27+
<Match>
28+
<Class name="org.apache.commons.cli.HelpFormatter" />
29+
<Method name="printHelp"
30+
params="int,java.lang.String,java.lang.String,org.apache.commons.cli.Options,java.lang.String,boolean" returns="void" />
31+
<Bug pattern="DM_DEFAULT_ENCODING" />
32+
</Match>
33+
34+
</FindBugsFilter>

0 commit comments

Comments
 (0)