forked from apache/datasketches-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindBugsExcludeFilter.xml
94 lines (81 loc) · 2.41 KB
/
FindBugsExcludeFilter.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
<FindBugsFilter> <!-- sketches-core -->
<!-- Too many false positives to be useful. I could not make it happy :( -->
<Match>
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
</Match>
<!-- False positive. FindBugs complains if DQS_RESIZE_THRESHOLD == REBUILD_THRESHOLD,
but this allows us to tune these constants for different sketches. -->
<Match>
<Bug pattern="DB_DUPLICATE_BRANCHES" />
<Class name="com.yahoo.sketches.theta.DirectQuickSelectSketchR" />
<Method name="setHashTableThreshold" />
</Match>
<!-- False positive. In this case we want to ignore the exceptions -->
<Match>
<Bug pattern="DE_MIGHT_IGNORE" />
<Class name="com.yahoo.sketches.theta.PairwiseCornerCasesTest" />
<Method name="checkNotOrdered" />
</Match>
<Match> <!-- Exclude for test classes; too many False Positives. -->
<Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL" />
<Class name="~.*\.*Test" />
</Match>
<Match> <!-- Exclude for test classes; too many False Positives. -->
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" />
<Class name="~.*\.*Test" />
</Match>
<Match> <!-- Too many False Positives. -->
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
</FindBugsFilter>
<!-- Examples: -->
<!-- Exclude java.* classes -->
<!--
<Match>
<Package name="java\.*" />
</Match>
-->
<!-- Exclude test classes -->
<!--
<Match>
<Class name="~.*\.*Test" />
</Match>
-->
<!--
<Match>
<Class name="com.foobar.ClassNotToBeAnalyzed" />
</Match>
-->
<!--
<Match>
<Class name="com.foobar.ClassWithSomeBugsMatched" />
<Bug code="DE,UrF,SIC" />
</Match>
-->
<!-- Match all XYZ violations. -->
<!--
<Match>
<Bug code="XYZ" />
</Match>
-->
<!-- Match all doublecheck violations in these methods of "AnotherClass". -->
<!--
<Match>
<Class name="com.foobar.AnotherClass" />
<Or>
<Method name="nonOverloadedMethod" />
<Method name="frob" params="int,java.lang.String" returns="void" />
<Method name="blat" params="" returns="boolean" />
</Or>
<Bug code="DC" />
</Match>
-->
<!-- A method with a dead local store false positive (medium priority). -->
<!--
<Match>
<Class name="com.foobar.MyClass" />
<Method name="someMethod" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
<Priority value="2" />
</Match>
-->