Skip to content

Commit 0556d20

Browse files
MarkEWaitehypery2k
authored andcommitted
Suppress existing spotbugs warnings
1 parent 472834d commit 0556d20

2 files changed

Lines changed: 34 additions & 27 deletions

File tree

pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
<description>Parses the console log generated by a build</description>
1818

1919
<properties>
20-
<!-- TODO: remove once FindBugs issues are fixed -->
21-
<spotbugs.failOnError>false</spotbugs.failOnError>
2220
<jenkins.version>2.387.3</jenkins.version>
2321
<!-- Maven Plugins -->
2422
<maven-release-plugin.version>2.5.1</maven-release-plugin.version>

src/spotbugs/excludesFilter.xml

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
1-
<!--
2-
~ The MIT License
3-
~
4-
~ Copyright (c) 2015, CloudBees, Inc.
5-
~
6-
~ Permission is hereby granted, free of charge, to any person obtaining a copy
7-
~ of this software and associated documentation files (the "Software"), to deal
8-
~ in the Software without restriction, including without limitation the rights
9-
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
~ copies of the Software, and to permit persons to whom the Software is
11-
~ furnished to do so, subject to the following conditions:
12-
~
13-
~ The above copyright notice and this permission notice shall be included in
14-
~ all copies or substantial portions of the Software.
15-
~
16-
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22-
~ THE SOFTWARE.
23-
-->
24-
251
<FindBugsFilter>
2+
<!--
3+
Exclusions in this section have been triaged and determined to be
4+
false positives.
5+
-->
6+
<Match>
7+
<Bug pattern="MS_MUTABLE_COLLECTION_PKGPROTECT" />
8+
<Class name="hudson.plugins.logparser.LogParserConsts" />
9+
<Or>
10+
<Field name="LEGAL_STATUS" />
11+
<Field name="STATUSES_WITH_SECTIONS_IN_LINK_FILES" />
12+
</Or>
13+
</Match>
14+
15+
<!--
16+
Here lies technical debt. Exclusions in this section have not yet
17+
been triaged. When working on this section, pick an exclusion to
18+
triage, then:
19+
20+
- Add a @SuppressFBWarnings(value = "[...]", justification = "[...]")
21+
annotation if it is a false positive. Indicate the reason why
22+
it is a false positive, then remove the exclusion from this
23+
section.
24+
25+
- If it is not a false positive, fix the bug, then remove the
26+
exclusion from this section.
27+
-->
2628
<Match>
27-
<Class name="~.*\.Messages"/>
29+
<Bug pattern="DM_DEFAULT_ENCODING" />
30+
<Or>
31+
<Class name="hudson.plugins.logparser.LogParserParser" />
32+
<Class name="hudson.plugins.logparser.LogParserResult" />
33+
<Class name="hudson.plugins.logparser.LogParserUtils" />
34+
<Class name="hudson.plugins.logparser.LogParserWriter" />
35+
<Class name="hudson.plugins.logparser.ReadWriteTextFile" />
36+
</Or>
2837
</Match>
2938
</FindBugsFilter>

0 commit comments

Comments
 (0)