Skip to main content
summaryrefslogtreecommitdiffstats
blob: 49b4015d3e63b58d6cd6ac6f8882316eddd3e6ac (plain) (blame)
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
68
<FindBugsFilter>
	<!-- Set maximum rank level to 16 -->
	<Match>
		<Rank value="17"/>
	</Match>

	<!-- Ignore all I18N Internationalization bugs -->
	<Match>
		<Bug category="I18N"/>
	</Match>
	
	<!-- Ignore all NM_SAME_SIMPLE_NAME_AS_SUPERCLASS or NM_SAME_SIMPLE_NAME_AS_INTERFACE violations -->
	<Match>
		<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/>
	</Match>
	<Match>
		<Bug pattern="NM_SAME_SIMPLE_NAME_AS_INTERFACE"/>
	</Match>

	<!-- Ignore all SF_SWITCH_NO_DEFAULT violations -->
	<Match>
		<Bug pattern="SF_SWITCH_NO_DEFAULT"/>
	</Match>

	<!-- Ignore all serialization violations -->
	<Match>
		<Or>
			<Bug pattern="SE_BAD_FIELD"/>
			<Bug pattern="SE_BAD_FIELD_INNER_CLASS"/>
			<Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE"/>
		</Or>
	</Match>
	
	<!-- Ignore all inner class should be static violations -->
	<Match>
		<Or>
			<Bug pattern="SIC_INNER_SHOULD_BE_STATIC"/>
			<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
			<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS"/>
		</Or>
	</Match>
	
	<!-- Ignore all REC_CATCH_EXCEPTION -->
	<Match>
		<Bug pattern="REC_CATCH_EXCEPTION"/>
	</Match>
	
	<!-- Ignore all STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE -->
	<Match>
		<Bug pattern="STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE"/>
	</Match>
	
	<!-- Ignore all ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD violations in bundle activators -->
	<Match>
		<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
		<Or>
			<Method name="start" params="org.osgi.framework.BundleContext" returns="void"/>
			<Method name="stop" params="org.osgi.framework.BundleContext" returns="void"/>
			<Class name="~.*\.Activator"/>
		</Or>
	</Match>
	
	<!-- Ignore RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE -->
	<Match>
		<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
	</Match>

</FindBugsFilter>

Back to the top