-
Notifications
You must be signed in to change notification settings - Fork 79
/
findbugs-exclude.xml
88 lines (81 loc) · 2.79 KB
/
findbugs-exclude.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<!-- Ignore code that we explicitly want. -->
<Match>
<Or>
<!-- Style choices. -->
<Bug pattern="SPP_EQUALS_ON_ENUM,CC_CYCLOMATIC_COMPLEXITY"/>
<!-- Runtime exception behavior. -->
<Bug pattern="EXS_EXCEPTION_SOFTENING_HAS_CHECKED,EXS_EXCEPTION_SOFTENING_NO_CHECKED,EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS,REC_CATCH_EXCEPTION"/>
<!-- Serialization not needed. -->
<Bug code="Se"/>
<!-- Trust the application. -->
<Bug code="EI,EI2"/>
<!-- Not really mistakes. -->
<Bug pattern="DE_MIGHT_IGNORE,DLS_DEAD_LOCAL_STORE,HSC_HUGE_SHARED_STRING_CONSTANT,RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
</Or>
</Match>
<!-- Specific exclusions, that exist for reasons. -->
<Match>
<Class name="com.netflix.msl.msg.MessageInputStream"/>
<Method name="finalize"/>
<Bug pattern="FI_USELESS"/>
</Match>
<Match>
<Class name="com.netflix.msl.test.ExpectedMslException"/>
<Bug pattern="NM_CLASS_NOT_EXCEPTION"/>
</Match>
<Match>
<Class name="com.netflix.msl.util.JsonUtils"/>
<Method name="b64urlDecode"/>
<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
</Match>
<!-- Example exclusions. -->
<Match>
<Class name="server.userauth.SimpleTokenFactory"/>
<Or>
<Bug pattern="AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION"/>
<Bug code="NP"/>
</Or>
</Match>
<Match>
<Class name="server.SimpleServlet"/>
<Method name="doPost"/>
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
</Match>
<Match>
<Class name="server.SimpleConstants"/>
<Bug pattern="MS_PKGPROTECT,MS_MUTABLE_ARRAY"/>
</Match>
<!-- Burp exclusions. -->
<Match>
<Class name="~burp\..*"/>
<Bug pattern="DM_DEFAULT_ENCODING"/>
</Match>
<!-- KanColle example is incomplete. -->
<Match>
<Class name="~kancolle\..*"/>
</Match>
<!-- Ignore all bugs except JUnit bugs in test classes. -->
<Match>
<Or>
<Class name="~.*Mock.*"/>
<Class name="~.*(Test|Suite)"/>
<Class name="~.*(Test|Suite)\$.*"/>
<Class name="MslTestUtils"/>
</Or>
<Or>
<Not><Bug code="IJU"/></Not>
<Bug code="NP"/>
</Or>
</Match>
<!-- Integration server exclusions. -->
<Match>
<Class name="~.*\.BaseServlet"/>
<Bug pattern="MSF_MUTABLE_SERVLET_FIELD,MTIA_SUSPECT_SERVLET_INSTANCE_FIELD"/>
</Match>
<!-- Ignore all bugs in org.json. -->
<Match>
<Class name="~org\.json\..*"/>
</Match>
</FindBugsFilter>