forked from JMRI/JMRI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.spotbugs-check.xml
101 lines (83 loc) · 3.51 KB
/
.spotbugs-check.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
89
90
91
92
93
94
95
96
97
98
99
100
101
<FindBugsFilter>
<!-- This first section is used to fail CI if any unexpected bugs appear.
We accept certain types of bugs at certain levels until we get them
all cleared out. -->
<!-- Suppress high bugs which we _don't_ want to fail CI until we can get them removed -->
<Match>
<Confidence value="1" /> <!-- 3 is low priority, 2 is medium priority, 1 is high priority -->
<Or>
<Bug pattern="SLF4J_FORMAT_SHOULD_BE_CONST" />
<Bug pattern="SLF4J_PLACE_HOLDER_MISMATCH" />
</Or>
</Match>
<!-- Suppress medium bugs which we _don't_ want to fail CI until we can get them removed -->
<Match>
<Confidence value="2" /> <!-- 3 is low priority, 2 is medium priority, 1 is high priority -->
<Or>
<Bug pattern="IS2_INCONSISTENT_SYNC" />
</Or>
</Match>
<!-- Suppress low priority bugs which we _don't_ want to fail CI until we can get them removed -->
<Match>
<Confidence value="3" /> <!-- 3 is low priority, 2 is medium priority, 1 is high priority -->
<Or>
<Bug pattern="IS2_INCONSISTENT_SYNC" />
<Bug pattern="LI_LAZY_INIT_STATIC" />
<Bug pattern="NO_NOTIFY_NOT_NOTIFYALL" />
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD" />
<Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" />
<Bug pattern="UW_UNCOND_WAIT" />
<Bug pattern="WA_NOT_IN_LOOP" />
</Or>
</Match>
<!-- what follows should be kept in sync with .spotbugs.xml -->
<!-- The following section is used to suppress notifications about
specific bugs and categories that we don't think are
worth the effort -->
<Match>
<!-- Minor clarity issue -->
<Bug pattern="RI_REDUNDANT_INTERFACES" />
</Match>
<Match>
<!-- Minimal messages can be very useful at DEBUG or TRACE level -->
<Bug pattern="SLF4J_SIGN_ONLY_FORMAT" />
</Match>
<Match>
<!-- Design issue -->
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON" />
</Match>
<Match>
<!-- Design issue -->
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS" />
</Match>
<Match>
<!-- Most of these are non-I18N, internal changes of case.
We should find the I18N ones, but it seems excessive
to track down and annotate all the others first thing -->
<Bug pattern="DM_CONVERT_CASE" />
</Match>
<Match>
<!-- Most of these are non-I18N, JMRI-specific file operations.
We should find the I18N ones, but it seems excessive
to track down and annotate all the others first thing.
Suppressed for now to focus attention on
other high-priority items. -->
<Bug pattern="DM_DEFAULT_ENCODING" />
</Match>
<Match>
<!-- JMRI code is often written to trust weird from other classes,
so the question of "malicious" is complicated. The rules in
this category should be restored in small batches -->
<Bug category="MALICIOUS_CODE" />
</Match>
<!-- items we're unlikely to restore -->
<Match>
<!-- JMRI does not use serialization, permanently ignore -->
<Bug code="Se,SnVI" />
</Match>
<Match>
<!-- JMRI code is written with static final loggers. -->
<Bug pattern="SLF4J_LOGGER_SHOULD_BE_NON_STATIC" />
</Match>
</FindBugsFilter>