forked from jitsi/jitsi-media-transform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spotbugs-exclude.xml
67 lines (58 loc) · 2.09 KB
/
spotbugs-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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<Match>
<Or>
<!-- Our Packet hierarchy intentionally uses clone() without calling super.clone(). -->
<Bug pattern="CN_IDIOM_NO_SUPER_CALL"/>
<!-- Serialization -->
<Bug pattern="SE_BAD_FIELD"/>
<Bug pattern="SE_BAD_FIELD_STORE"/>
<!-- We expose arrays in multiple places on purpose. -->
<Bug pattern="EI_EXPOSE_REP"/>
<Bug pattern="EI_EXPOSE_REP2"/>
</Or>
</Match>
<!-- Kotlin-specific -->
<Match>
<Or>
<!-- False positives with lateinit -->
<Bug pattern="NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
<!-- False positives with lateinit -->
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
<!-- False positives with lateinit -->
<Bug pattern="NP_NULL_PARAM_DEREF"/>
<!-- False positives with method references -->
<Bug pattern="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE"/>
<!-- False positives with kotlin's "when" -->
<Bug pattern="SF_SWITCH_NO_DEFAULT"/>
<!-- False positives with lazy vals -->
<Bug pattern="NP_NULL_ON_SOME_PATH"/>
<!-- False positives with lazy vals -->
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<!-- False positives for an unknown reason -->
<Bug pattern="BC_BAD_CAST_TO_ABSTRACT_COLLECTION"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Bug pattern="UR_UNINIT_READ"/>
<Bug pattern="UC_USELESS_OBJECT"/>
</Or>
<Source name="~.*\.kt" />
</Match>
<!-- Tests -->
<Match>
<Or>
<!-- Tests have a valid reason to ignore return values (expecting exceptions, etc). -->
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
<!-- Same for exceptions. -->
<Bug pattern="DE_MIGHT_IGNORE"/>
<!-- In tests it is convenient to use Random() randomly. -->
<Bug pattern="DMI_RANDOM_USED_ONLY_ONCE"/>
<!-- Looks like a false positive. -->
<Bug pattern="UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS"/>
</Or>
<Or>
<Source name="~.*\.*Test.kt" />
<Source name="~.*\.*Test.java" />
<Class name="~.*\.module_tests\..*" />
</Or>
</Match>
</FindBugsFilter>