Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9d487d414a510d09ae40c97c1b54626043d4dde9 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<FindBugsFilter>
	<!-- 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 EQ_DOESNT_OVERRIDE_EQUALS -->
	<Match>
		<Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS"/>
		<Package name="~org\.eclipse\.tcf\.te\..*"/>
	</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"/>
			<Class name="org.eclipse.tcf.te.runtime.properties.PropertiesContainer"/>
			<Class name="org.eclipse.tcf.te.ui.internal.utils.AbstractSearcher"/>
		</Or>
	</Match>
	
	<!-- Ignore all RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE in hasString(String) methods -->
	<Match>
		<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
		<Method name="hasString" params="java.lang.String" returns="boolean"/>
	</Match>
	<Match>
		<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
		<And>
			<Class name="org.eclipse.tcf.te.tcf.terminals.core.launcher.TerminalsLauncher"/>
			<Method name="executeLaunch"/>
		</And>
	</Match>
	
	<!-- Ignore EI_EXPOSE_REP -->
	<Match>
		<Bug pattern="EI_EXPOSE_REP"/>
		<Or>
			<Method name="getAdapterList"/>
			<Class name="org.eclipse.tcf.te.tcf.filesystem.core.internal.utils.FileState"/>
			<Package name="~org\.eclipse\.tcf\.te\.tcf\.filesystem\.core\.internal\.operations"/>
		</Or>
	</Match>
	
	<!-- Ignore EI_EXPOSE_REP2 -->
	<Match>
		<Bug pattern="EI_EXPOSE_REP2"/>
		<Or>
			<Class name="org.eclipse.tcf.te.ui.views.handler.UpdateActiveExtensionsOperation"/>
			<Class name="org.eclipse.tcf.te.ui.views.handler.UpdateActiveFiltersOperation"/>
			<Class name="~org\.eclipse\.tcf\.te\.tcf\.terminals\.core\.launcher\.TerminalsStreamsListener.*"/>
			<Class name="org.eclipse.tcf.te.tcf.filesystem.core.internal.utils.FileState"/>
			<Package name="~org\.eclipse\.tcf\.te\.tcf\.filesystem\.core\.internal\.operations"/>
		</Or>
	</Match>
	
	<!-- Ignore LI_LAZY_INIT_UPDATE_STATIC in Model.java -->
	<Match>
		<Bug pattern="LI_LAZY_INIT_UPDATE_STATIC"/>
		<And>
			<Class name="org.eclipse.tcf.te.tcf.locator.model.Model"/>
			<Method name="initialize"/>
		</And>
	</Match>
	
	<!-- Ignore URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD -->
	<Match>
		<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
		<Or>
			<Class name="org.eclipse.tcf.te.launch.ui.tabs.filetransfers.AbstractFileTransferSection"/>
			<Class name="org.eclipse.tcf.te.ui.tables.properties.NodePropertiesTableTableNode"/>
			<Class name="~org\.eclipse\.tcf\.te\.tcf\.terminals\.core\.launcher\.TerminalsStreamsListener.*"/>
		</Or>
	</Match>

	<!-- Ignore UW_UNCOND_WAIT in InputStreamMonitor -->
	<Match>
		<Bug pattern="UW_UNCOND_WAIT"/>
		<Class name="org.eclipse.tcf.te.ui.terminals.streams.InputStreamMonitor"/>
	</Match>
	
	<!-- Ignore BC_UNCONFIRMED_CAST -->
	<Match>
		<Bug pattern="BC_UNCONFIRMED_CAST"/>
		<Package name="~org\.eclipse\.tcf\.te\.ui\.trees"/>
	</Match>
	
	<!-- Ignore DMI_HARDCODED_ABSOLUTE_FILENAME in Host -->
	<Match>
		<Bug pattern="DMI_HARDCODED_ABSOLUTE_FILENAME"/>
		<Class name="org.eclipse.tcf.te.runtime.utils.Host"/>
	</Match>
	
	<!-- Ignore WA_NOT_IN_LOOP in ProcessOutputReaderThread -->
	<Match>
		<Bug pattern="WA_NOT_IN_LOOP"/>
		<Class name="org.eclipse.tcf.te.runtime.processes.ProcessOutputReaderThread"/>
	</Match>
	
	<!-- Ignore UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR -->
	<Match>
		<Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
		<And>
			<Class name="org.eclipse.tcf.te.ui.internal.utils.BreadthFirstSearcher"/>
			<Method name="searchNext"/>
		</And>
	</Match>
	
	<!-- Filters for org.eclipse.tcf bundle -->
	<Match>
		<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
		<And>
			<Class name="org.eclipse.tcf.Activator"/>
			<Method name="initialize"/>
		</And>
	</Match>

	<!-- Filters for org.eclipse.tcf.core bundle -->
	<Match>
		<Bug pattern="EI_EXPOSE_REP2"/>
		<And>
			<Class name="org.eclipse.tcf.core.Command"/>
			<Method name="initialize"/>
		</And>
	</Match>
	<Match>
		<Bug pattern="STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE"/>
		<And>
			<Class name="org.eclipse.tcf.core.Command"/>
			<Method name="appendErrorProps"/>
		</And>
	</Match>
	<Match>
		<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
		<Package name="org.eclipse.tcf.internal.services.remote"/>
	</Match>

	
	<!-- Filters for org.eclipse.tcf.debug.ui bundle -->
	<Match>
		<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
		<Class name="org.eclipse.tcf.internal.debug.ui.model.TCFNodeSymbol"/>
	</Match>

</FindBugsFilter>

Back to the top