-
Notifications
You must be signed in to change notification settings - Fork 0
/
spotbugs-filter.xml
94 lines (79 loc) · 2.57 KB
/
spotbugs-filter.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
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter xmlns="https://github.com/spotbugs/filter/3.0.0">
<Match>
<Class name="~com\.io7m\.blackthorne\..+\$InitShim"/>
<Bug pattern="PME_POOR_MANS_ENUM"/>
</Match>
<Match>
<Class name="~com\.io7m\.blackthorne\..+\$Builder"/>
<Or>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
<Bug pattern="ITC_INHERITANCE_TYPE_CHECKING"/>
<Bug pattern="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS"/>
<Bug pattern="UPM_UNCALLED_PRIVATE_METHOD"/>
</Or>
</Match>
<!-- Function.identity() doesn't allow for variance. -->
<Match>
<Class name="com.io7m.blackthorne.core.Blackthorne"/>
<Method name="widen"/>
<Bug pattern="FII_USE_FUNCTION_IDENTITY"/>
</Match>
<!-- Safe. -->
<Match>
<Class name="com.io7m.blackthorne.core.internal.BTStackHandler"/>
<Bug pattern="FORMAT_STRING_MANIPULATION"/>
</Match>
<!-- Used to assist with type inference. -->
<Match>
<Class name="com.io7m.blackthorne.core.internal.BTContentHandler"/>
<Method name="builder"/>
<Bug pattern="UP_UNUSED_PARAMETER"/>
</Match>
<!-- This class is entirely convenience methods. -->
<Match>
<Class name="com.io7m.blackthorne.core.Blackthorne"/>
<Bug pattern="OPM_OVERLY_PERMISSIVE_METHOD"/>
</Match>
<!-- Simply wrong. -->
<Match>
<Class
name="com.io7m.blackthorne.core.internal.BTStackHandler$StackElement"/>
<Bug pattern="FCBL_FIELD_COULD_BE_LOCAL"/>
</Match>
<Match>
<Or>
<Class name="com.io7m.blackthorne.core.BTParseError"/>
<Class name="com.io7m.blackthorne.core.BTQualifiedName"/>
</Or>
</Match>
<Match>
<Method name="builder"/>
<Bug pattern="OPM_OVERLY_PERMISSIVE_METHOD"/>
</Match>
<!-- JXE prevents XXE issues. -->
<Match>
<Class name="com.io7m.blackthorne.core.Blackthorne"/>
<Bug pattern="XXE_XMLREADER"/>
</Match>
<!-- Don't serialize exceptions. Deal with it. -->
<Match>
<Class name="com.io7m.blackthorne.core.BTException"/>
<Bug pattern="SE_BAD_FIELD"/>
</Match>
<!-- The interface exists to be implemented. -->
<Match>
<Class name="com.io7m.blackthorne.core.BTException"/>
<Bug pattern="SCII_SPOILED_CHILD_INTERFACE_IMPLEMENTOR"/>
</Match>
<Match>
<Or>
<Bug pattern="OPM_OVERLY_PERMISSIVE_METHOD"/>
<Bug pattern="OCP_OVERLY_CONCRETE_PARAMETER"/>
<Bug pattern="IMC_IMMATURE_CLASS_NO_TOSTRING"/>
<Bug pattern="WEM_WEAK_EXCEPTION_MESSAGING"/>
<Bug pattern="CRLF_INJECTION_LOGS"/>
<Bug pattern="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE"/>
</Or>
</Match>
</FindBugsFilter>