forked from mongodb/mongo-hadoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfindbugs-exclude.xml
51 lines (46 loc) · 1.42 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
<FindBugsFilter>
<!-- specific excludes which should be fixed -->
<Match>
<Class name="org.bson.JSONWriterSettings"/>
</Match>
<Match>
<Bug code="EI,EI2"/>
</Match>
<!-- ignore driver-compat for now - this should be addressed after bson/driver warnings fixed -->
<Match>
<Package name="~com\.mongodb.*"/>
</Match>
<!-- these specific issues are deliberate design decisions -->
<Match>
<Class name="com.mongodb.DocumentCodec">
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/>
</Class>
</Match>
<Match>
<Class name="org.mongodb.DatabaseTestCase">
<Bug pattern="MS_PKGPROTECT"/>
</Class>
</Match>
<Match>
<Class name="org.mongodb.FunctionalSpecification">
<Bug pattern="MS_PKGPROTECT"/>
</Class>
</Match>
<Match>
<Class name="com.mongodb.DatabaseTestCase">
<Bug pattern="MS_PKGPROTECT"/>
</Class>
</Match>
<!-- Spock tests seem to fail the serial version ID test when stubbing. Annoying. -->
<Match>
<Class name="~.*\.*Specification.*"/>
<Bug pattern="SE_NO_SERIALVERSIONID,LI_LAZY_INIT_STATIC"/>
</Match>
<!-- All bugs in test classes, except for JUnit-specific bugs -->
<Match>
<Class name="~.*\.*Test"/>
<Not>
<Bug code="IJU"/>
</Not>
</Match>
</FindBugsFilter>