aboutsummaryrefslogtreecommitdiffstats
path: root/main/project/findbugs/exclusions.xml
blob: 798ecb497920658259ebae5338072cdbe78b3314 (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
<?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>
			
</FindBugsFilter>