Skip to content

Commit 4a5b394

Browse files
committed
chore: configure SpotBugs plugin fb-contrib
1 parent 1e2d7e9 commit 4a5b394

File tree

2 files changed

+167
-0
lines changed

2 files changed

+167
-0
lines changed

pom.xml

+7
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@
121121
<configuration>
122122
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
123123
<includeTests>true</includeTests>
124+
<plugins>
125+
<plugin>
126+
<groupId>com.mebigfatguy.fb-contrib</groupId>
127+
<artifactId>fb-contrib</artifactId>
128+
<version>7.6.4</version>
129+
</plugin>
130+
</plugins>
124131
</configuration>
125132
</plugin>
126133
</plugins>

spotbugs-exclude.xml

+160
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,164 @@
125125
<Match>
126126
<Bug pattern="RV_ABSOLUTE_VALUE_OF_HASHCODE" />
127127
</Match>
128+
<!-- fb-contrib -->
129+
<Match>
130+
<Bug pattern="OCP_OVERLY_CONCRETE_PARAMETER" />
131+
</Match>
132+
<Match>
133+
<Bug pattern="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" />
134+
</Match>
135+
<Match>
136+
<Bug pattern="LSC_LITERAL_STRING_COMPARISON" />
137+
</Match>
138+
<Match>
139+
<Bug pattern="CE_CLASS_ENVY" />
140+
</Match>
141+
<Match>
142+
<Bug pattern="PSC_PRESIZE_COLLECTIONS" />
143+
</Match>
144+
<Match>
145+
<Bug pattern="SACM_STATIC_ARRAY_CREATED_IN_METHOD" />
146+
</Match>
147+
<Match>
148+
<Bug pattern="LUI_USE_SINGLETON_LIST" />
149+
</Match>
150+
<Match>
151+
<Bug pattern="CLI_CONSTANT_LIST_INDEX" />
152+
</Match>
153+
<Match>
154+
<Bug pattern="BED_BOGUS_EXCEPTION_DECLARATION" />
155+
</Match>
156+
<Match>
157+
<Bug pattern="CNC_COLLECTION_NAMING_CONFUSION" />
158+
</Match>
159+
<Match>
160+
<Bug pattern="TR_TAIL_RECURSION" />
161+
</Match>
162+
<Match>
163+
<Bug pattern="LII_LIST_INDEXED_ITERATING" />
164+
</Match>
165+
<Match>
166+
<Bug pattern="USBR_UNNECESSARY_STORE_BEFORE_RETURN" />
167+
</Match>
168+
<Match>
169+
<Bug pattern="MAC_MANUAL_ARRAY_COPY" />
170+
</Match>
171+
<Match>
172+
<Bug pattern="SPP_USE_ISEMPTY" />
173+
</Match>
174+
<Match>
175+
<Bug pattern="BL_BURYING_LOGIC" />
176+
</Match>
177+
<Match>
178+
<Bug pattern="OI_OPTIONAL_ISSUES_USES_IMMEDIATE_EXECUTION" />
179+
</Match>
180+
<Match>
181+
<Bug pattern="PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS" />
182+
</Match>
183+
<Match>
184+
<Bug pattern="UTWR_USE_TRY_WITH_RESOURCES" />
185+
</Match>
186+
<Match>
187+
<Bug pattern="MUI_CONTAINSKEY_BEFORE_GET" />
188+
</Match>
189+
<Match>
190+
<Bug pattern="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" />
191+
</Match>
192+
<Match>
193+
<Bug pattern="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" />
194+
</Match>
195+
<Match>
196+
<Bug pattern="SUA_SUSPICIOUS_UNINITIALIZED_ARRAY" />
197+
</Match>
198+
<Match>
199+
<Bug pattern="SPP_USE_MATH_CONSTANT" />
200+
</Match>
201+
<Match>
202+
<Bug pattern="UJM_UNJITABLE_METHOD" />
203+
</Match>
204+
<Match>
205+
<Bug pattern="SEC_SIDE_EFFECT_CONSTRUCTOR" />
206+
</Match>
207+
<Match>
208+
<Bug pattern="MDM_STRING_BYTES_ENCODING" />
209+
</Match>
210+
<Match>
211+
<Bug pattern="PMB_POSSIBLE_MEMORY_BLOAT" />
212+
</Match>
213+
<Match>
214+
<Bug pattern="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" />
215+
</Match>
216+
<Match>
217+
<Bug pattern="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" />
218+
</Match>
219+
<Match>
220+
<Bug pattern="UP_UNUSED_PARAMETER" />
221+
</Match>
222+
<Match>
223+
<Bug pattern="DSOC_DUBIOUS_SET_OF_COLLECTIONS" />
224+
</Match>
225+
<Match>
226+
<Bug pattern="NAB_NEEDLESS_BOX_TO_UNBOX" />
227+
</Match>
228+
<Match>
229+
<Bug pattern="FPL_FLOATING_POINT_LOOPS" />
230+
</Match>
231+
<Match>
232+
<Bug pattern="ITU_INAPPROPRIATE_TOSTRING_USE" />
233+
</Match>
234+
<Match>
235+
<Bug pattern="DMC_DUBIOUS_MAP_COLLECTION" />
236+
</Match>
237+
<Match>
238+
<Bug pattern="SPP_PASSING_THIS_AS_PARM" />
239+
</Match>
240+
<Match>
241+
<Bug pattern="FCBL_FIELD_COULD_BE_LOCAL" />
242+
</Match>
243+
<Match>
244+
<Bug pattern="ENMI_EQUALS_ON_ENUM" />
245+
</Match>
246+
<Match>
247+
<Bug pattern="NAB_NEEDLESS_BOXING_PARSE" />
248+
</Match>
249+
<Match>
250+
<Bug pattern="IMC_IMMATURE_CLASS_VAR_NAME" />
251+
</Match>
252+
<Match>
253+
<Bug pattern="CFS_CONFUSING_FUNCTION_SEMANTICS" />
254+
</Match>
255+
<Match>
256+
<Bug pattern="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" />
257+
</Match>
258+
<Match>
259+
<Bug pattern="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" />
260+
</Match>
261+
<Match>
262+
<Bug pattern="LEST_LOST_EXCEPTION_STACK_TRACE" />
263+
</Match>
264+
<Match>
265+
<Bug pattern="PL_PARALLEL_LISTS" />
266+
</Match>
267+
<Match>
268+
<Bug pattern="PCAIL_POSSIBLE_CONSTANT_ALLOCATION_IN_LOOP" />
269+
</Match>
270+
<Match>
271+
<Bug pattern="STT_STRING_PARSING_A_FIELD" />
272+
</Match>
273+
<Match>
274+
<Bug pattern="IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID" />
275+
</Match>
276+
<Match>
277+
<Bug pattern="SUI_CONTAINS_BEFORE_ADD" />
278+
</Match>
279+
<Match>
280+
<Bug pattern="DRE_DECLARED_RUNTIME_EXCEPTION" />
281+
</Match>
282+
<Match>
283+
<Bug pattern="SLS_SUSPICIOUS_LOOP_SEARCH" />
284+
</Match>
285+
<Match>
286+
<Bug pattern="SPP_TOSTRING_ON_STRING" />
287+
</Match>
128288
</FindBugsFilter>

0 commit comments

Comments
 (0)