|
7 | 7 | <Bug code="EI,EI2"/>
|
8 | 8 | </Match>
|
9 | 9 |
|
10 |
| - <Match> |
11 |
| - <Package name="com.mongodb"> |
12 |
| - <Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS"/> <!-- Deliberately ignoring this, as many BSONObject subclasses don't do it --> |
13 |
| - </Package> |
14 |
| - </Match> |
15 | 10 |
|
16 | 11 | <!-- these specific issues are deliberate design decisions -->
|
| 12 | + <!-- Deliberately ignoring this, as many BSONObject subclasses don't do it --> |
17 | 13 | <Match>
|
18 |
| - <Class name="com.mongodb.connection.BaseCluster"> |
19 |
| - <Bug pattern="RV_RETURN_VALUE_IGNORED"/> <!-- Deliberately ignoring return value of CountDownLatch.await --> |
20 |
| - </Class> |
| 14 | + <Package name="com.mongodb"/> |
| 15 | + <Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS"/> |
21 | 16 | </Match>
|
22 | 17 |
|
| 18 | + <!-- Deliberately ignoring return value of CountDownLatch.await --> |
23 | 19 | <Match>
|
24 |
| - <Class name="com.mongodb.gridfs.GridFS" /> |
25 |
| - <Method name="createFile" params="java.io.File" /> <!-- The underlying call to GridFSInputFile closes the file --> |
26 |
| - <Bug pattern="OBL_UNSATISFIED_OBLIGATION"/> |
| 20 | + <Class name="com.mongodb.connection.BaseCluster"/> |
| 21 | + <Bug pattern="RV_RETURN_VALUE_IGNORED"/> |
27 | 22 | </Match>
|
| 23 | + |
| 24 | + <!-- The underlying call to GridFSInputFile closes the file --> |
28 | 25 | <Match>
|
29 |
| - <Class name="com.mongodb.DocumentCodec"> |
30 |
| - <Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/> |
31 |
| - </Class> |
| 26 | + <Class name="com.mongodb.gridfs.GridFS"/> |
| 27 | + <Method name="createFile" params="java.io.File"/> |
| 28 | + <Bug pattern="OBL_UNSATISFIED_OBLIGATION"/> |
32 | 29 | </Match>
|
| 30 | + |
33 | 31 | <Match>
|
34 |
| - <Class name="org.mongodb.DatabaseTestCase"> |
35 |
| - <Bug pattern="MS_PKGPROTECT"/> |
36 |
| - </Class> |
| 32 | + <Class name="com.mongodb.DocumentCodec"/> |
| 33 | + <Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/> |
37 | 34 | </Match>
|
| 35 | + |
38 | 36 | <Match>
|
39 |
| - <Class name="org.mongodb.FunctionalSpecification"> |
40 |
| - <Bug pattern="MS_PKGPROTECT"/> |
41 |
| - </Class> |
| 37 | + <Class name="org.mongodb.DatabaseTestCase" /> |
| 38 | + <Bug pattern="MS_PKGPROTECT"/> |
42 | 39 | </Match>
|
| 40 | + |
43 | 41 | <Match>
|
44 |
| - <Class name="com.mongodb.DatabaseTestCase"> |
45 |
| - <Bug pattern="MS_PKGPROTECT"/> |
46 |
| - </Class> |
| 42 | + <Class name="org.mongodb.FunctionalSpecification"/> |
| 43 | + <Bug pattern="MS_PKGPROTECT"/> |
47 | 44 | </Match>
|
| 45 | + |
48 | 46 | <Match>
|
49 |
| - <Class name="org.bson.types.StringRangeSet$NumberStringComparator"> |
50 |
| - <Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE"/> |
51 |
| - </Class> |
| 47 | + <Class name="com.mongodb.DatabaseTestCase"/> |
| 48 | + <Bug pattern="MS_PKGPROTECT"/> |
52 | 49 | </Match>
|
53 | 50 |
|
54 |
| - <!-- Spock tests seem to fail the serial version ID test when stubbing. Annoying. --> |
55 | 51 | <Match>
|
56 |
| - <Class name="~.*\.*Specification.*"/> |
57 |
| - <Bug pattern="SE_NO_SERIALVERSIONID,LI_LAZY_INIT_STATIC"/> |
| 52 | + <Class name="org.bson.types.StringRangeSet$NumberStringComparator"/> |
| 53 | + <Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE"/> |
58 | 54 | </Match>
|
59 | 55 |
|
| 56 | + <!-- Test exclusions --> |
60 | 57 | <!-- All bugs in test classes, except for JUnit-specific bugs -->
|
61 | 58 | <Match>
|
62 | 59 | <Class name="~.*\.*Test"/>
|
|
65 | 62 | </Not>
|
66 | 63 | </Match>
|
67 | 64 |
|
| 65 | + <!-- Deliberate use of an unused field in the Person POJO class --> |
| 66 | + <Match> |
| 67 | + <Class name="com.mongodb.acceptancetest.crud.pojo.Person"/> |
| 68 | + <Bug pattern="SS_SHOULD_BE_STATIC"/> |
| 69 | + </Match> |
| 70 | + |
| 71 | + <!-- Spock tests seem to fail the serial version ID test when stubbing. Annoying. --> |
| 72 | + <Match> |
| 73 | + <Source name="~.*\.groovy"/> |
| 74 | + <Bug pattern="SE_NO_SERIALVERSIONID,LI_LAZY_INIT_STATIC,EQ_UNUSUAL,IT_NO_SUCH_ELEMENT,RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/> |
| 75 | + </Match> |
| 76 | + |
| 77 | + <!-- Strange findbugs issues --> |
| 78 | + <Match> |
| 79 | + <Source name="~.*ClusterSettingsSpecification\.groovy"/> |
| 80 | + <Bug pattern="RANGE_ARRAY_INDEX"/> |
| 81 | + </Match> |
| 82 | + |
68 | 83 | </FindBugsFilter>
|
0 commit comments