-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspotbugs-exclude.xml
More file actions
58 lines (52 loc) · 1.59 KB
/
spotbugs-exclude.xml
File metadata and controls
58 lines (52 loc) · 1.59 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
SpotBugs exclude filter for nsecbunker-java.
Excludes false positives and intentional patterns.
-->
<FindBugsFilter>
<!-- Exclude generated code (Lombok, etc.) -->
<Match>
<Source name="~.*\.java"/>
<Bug pattern="EI_EXPOSE_REP"/>
</Match>
<Match>
<Source name="~.*\.java"/>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>
<!-- Exclude test classes from certain checks -->
<Match>
<Class name="~.*Test"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
</Match>
<Match>
<Class name="~.*Test"/>
<Bug pattern="DM_DEFAULT_ENCODING"/>
</Match>
<!-- Exclude model/DTO classes that intentionally expose fields -->
<Match>
<Package name="~xyz\.tcheeric\.nsecbunker\..*\.model"/>
<Bug pattern="EI_EXPOSE_REP"/>
</Match>
<Match>
<Package name="~xyz\.tcheeric\.nsecbunker\..*\.model"/>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>
<!-- Exclude builder pattern false positives -->
<Match>
<Class name="~.*Builder"/>
<Bug pattern="URF_UNREAD_FIELD"/>
</Match>
<!-- Exclude exception constructors -->
<Match>
<Class name="~.*Exception"/>
<Bug pattern="THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/>
</Match>
<!-- Allow serialVersionUID to be calculated -->
<Match>
<Bug pattern="SE_NO_SERIALVERSIONID"/>
</Match>
<!-- Low priority issues we don't care about -->
<Match>
<Bug pattern="DM_STRING_VOID_CTOR"/>
</Match>
</FindBugsFilter>