aboutsummaryrefslogtreecommitdiffstats
path: root/main/project/findbugs/exclusions.xml
blob: 00f0032cd65fa64bdfddb9fc16520acbb67f58ca (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
    <!-- generated Android resources -->
	<Match>
	    <Or>
			<Class name="~.*\.R\$.*"/>
	        <Class name="~.*ViewHolder"/>
	    </Or>
	</Match>
	
	<!-- third party code -->
	<Match>
	    <Not>
	        <Class name="~.*cgeo.*"/>
	    </Not>
	</Match>
	<Match>
	    <Class name="~.*kxml.*"/>
	</Match>
	
	<!-- irrelevant findings -->
	<Match>
	    <Or>
	        <Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
    	    <Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE" />
	    </Or>
	</Match>
	
	<!-- Memory usage improvement by explicitly removing shared substrings in pattern matcher. -->
	<Match>
	    <Bug pattern="DM_STRING_CTOR" />
	    <Or>
	        <Class name="~.*MatcherWrapper"></Class>
	        <Class name="~.*TextUtils"></Class>
	    </Or>
	</Match>
	
	<!-- File scanner needs to use hard coded names. -->
	<Match>
	    <Bug pattern="DMI_HARDCODED_ABSOLUTE_FILENAME"/>
	    <Class name="~.*LocalStorage"/>
	</Match>
	
	<!-- Tests using setUp() methods don't initialize their fields in the constructor. -->
	<Match>
	    <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
	    <Class name="~.*Test"/>
	</Match>

	<!-- To many false positives here. The same issue will also be found by Eclipse locally, so we should be fine. -->			
	<Match>
	    <Bug pattern="SF_SWITCH_NO_DEFAULT"/>
	</Match>
</FindBugsFilter>