-
Notifications
You must be signed in to change notification settings - Fork 48
/
spotBugsExcludeFilter.xml
62 lines (56 loc) · 2.56 KB
/
spotBugsExcludeFilter.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2020 Google LLC
Licensed 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.
-->
<!-- SpotBugs filtering.
SpotBugs is a static code analysis tool run as part of the "check" phase of the build.
This file dictates which categories of bugs and individual false positives that we supress.
For a detailed description of spotbugs bug categories,
see https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html
-->
<FindBugsFilter
xmlns="https://github.com/spotbugs/filter/3.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
<Match>
<!-- TODO: Remove once SpotBugs fully supports Java 11 (JENKINS-53720) -->
<!-- JDK 11 generates a different binary code than expected by SpotBugs -->
<!-- https://github.com/spotbugs/spotbugs/issues/756 -->
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
</Match>
<!-- From https://github.com/GoogleCloudPlatform/java-repo-tools/issues/123 -->
<!-- https://github.com/GoogleCloudPlatform/java-docs-samples/pull/2630#issuecomment-612320968 -->
<!-- <Bug pattern="IMC_IMMATURE_CLASS_NO_TOSTRING" />-->
<!-- <Bug pattern="CRLF_INJECTION_LOGS" />-->
<!-- <Bug pattern="LI_LAZY_INIT_STATIC" />-->
<!-- <Bug pattern="DLS_DEAD_LOCAL_STORE" />-->
<Match>
<!-- https://github.com/spotbugs/spotbugs/issues/735 -->
<Bug pattern="UPM_UNCALLED_PRIVATE_METHOD"/>
</Match>
<Match>
<!-- https://github.com/spotbugs/spotbugs/issues/651 -->
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
</Match>
<Match>
<!-- Samples uses this idiom a lot, so I'm turning it off -->
<Bug pattern="CLI_CONSTANT_LIST_INDEX"/>
</Match>
<Match>
<!-- https://github.com/spotbugs/spotbugs/issues/925 -->
<Bug pattern="PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS"/>
</Match>
<Match>
<!-- https://github.com/spotbugs/spotbugs/issues/293 -->
<Bug pattern="OBL_UNSATISFIED_OBLIGATION"/>
</Match>
</FindBugsFilter>