]>
Commit | Line | Data |
---|---|---|
8dfb76c9 MG |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <pmd> | |
3 | <useProjectRuleSet>false</useProjectRuleSet> | |
4 | <ruleSetFile>.ruleset</ruleSetFile> | |
5 | <rules> | |
6 | <rule> | |
7 | <name>LooseCoupling</name> | |
8 | <ruleset>Type Resolution Rules</ruleset> | |
9 | </rule> | |
10 | <rule> | |
11 | <name>CloneMethodMustImplementCloneable</name> | |
12 | <ruleset>Type Resolution Rules</ruleset> | |
13 | </rule> | |
14 | <rule> | |
15 | <name>SignatureDeclareThrowsException</name> | |
16 | <ruleset>Type Resolution Rules</ruleset> | |
17 | </rule> | |
18 | <rule> | |
19 | <name>UseSingleton</name> | |
20 | <ruleset>Design Rules</ruleset> | |
21 | </rule> | |
22 | <rule> | |
23 | <name>SimplifyBooleanReturns</name> | |
24 | <ruleset>Design Rules</ruleset> | |
25 | </rule> | |
26 | <rule> | |
27 | <name>SimplifyBooleanExpressions</name> | |
28 | <ruleset>Design Rules</ruleset> | |
29 | </rule> | |
30 | <rule> | |
31 | <name>AvoidDeeplyNestedIfStmts</name> | |
32 | <ruleset>Design Rules</ruleset> | |
33 | </rule> | |
34 | <rule> | |
35 | <name>AvoidReassigningParameters</name> | |
36 | <ruleset>Design Rules</ruleset> | |
37 | </rule> | |
38 | <rule> | |
39 | <name>SwitchDensity</name> | |
40 | <ruleset>Design Rules</ruleset> | |
41 | </rule> | |
42 | <rule> | |
43 | <name>ConstructorCallsOverridableMethod</name> | |
44 | <ruleset>Design Rules</ruleset> | |
45 | </rule> | |
46 | <rule> | |
47 | <name>AccessorClassGeneration</name> | |
48 | <ruleset>Design Rules</ruleset> | |
49 | </rule> | |
50 | <rule> | |
51 | <name>FinalFieldCouldBeStatic</name> | |
52 | <ruleset>Design Rules</ruleset> | |
53 | </rule> | |
54 | <rule> | |
55 | <name>CloseResource</name> | |
56 | <ruleset>Design Rules</ruleset> | |
57 | </rule> | |
58 | <rule> | |
59 | <name>NonStaticInitializer</name> | |
60 | <ruleset>Design Rules</ruleset> | |
61 | </rule> | |
62 | <rule> | |
63 | <name>DefaultLabelNotLastInSwitchStmt</name> | |
64 | <ruleset>Design Rules</ruleset> | |
65 | </rule> | |
66 | <rule> | |
67 | <name>NonCaseLabelInSwitchStatement</name> | |
68 | <ruleset>Design Rules</ruleset> | |
69 | </rule> | |
70 | <rule> | |
71 | <name>OptimizableToArrayCall</name> | |
72 | <ruleset>Design Rules</ruleset> | |
73 | </rule> | |
74 | <rule> | |
75 | <name>BadComparison</name> | |
76 | <ruleset>Design Rules</ruleset> | |
77 | </rule> | |
78 | <rule> | |
79 | <name>EqualsNull</name> | |
80 | <ruleset>Design Rules</ruleset> | |
81 | </rule> | |
82 | <rule> | |
83 | <name>ConfusingTernary</name> | |
84 | <ruleset>Design Rules</ruleset> | |
85 | </rule> | |
86 | <rule> | |
87 | <name>InstantiationToGetClass</name> | |
88 | <ruleset>Design Rules</ruleset> | |
89 | </rule> | |
90 | <rule> | |
91 | <name>IdempotentOperations</name> | |
92 | <ruleset>Design Rules</ruleset> | |
93 | </rule> | |
94 | <rule> | |
95 | <name>SimpleDateFormatNeedsLocale</name> | |
96 | <ruleset>Design Rules</ruleset> | |
97 | </rule> | |
98 | <rule> | |
99 | <name>ImmutableField</name> | |
100 | <ruleset>Design Rules</ruleset> | |
101 | </rule> | |
102 | <rule> | |
103 | <name>UseLocaleWithCaseConversions</name> | |
104 | <ruleset>Design Rules</ruleset> | |
105 | </rule> | |
106 | <rule> | |
107 | <name>AvoidProtectedFieldInFinalClass</name> | |
108 | <ruleset>Design Rules</ruleset> | |
109 | </rule> | |
110 | <rule> | |
111 | <name>AssignmentToNonFinalStatic</name> | |
112 | <ruleset>Design Rules</ruleset> | |
113 | </rule> | |
114 | <rule> | |
115 | <name>MissingStaticMethodInNonInstantiatableClass</name> | |
116 | <ruleset>Design Rules</ruleset> | |
117 | </rule> | |
118 | <rule> | |
119 | <name>AvoidSynchronizedAtMethodLevel</name> | |
120 | <ruleset>Design Rules</ruleset> | |
121 | </rule> | |
122 | <rule> | |
123 | <name>MissingBreakInSwitch</name> | |
124 | <ruleset>Design Rules</ruleset> | |
125 | </rule> | |
126 | <rule> | |
127 | <name>UseNotifyAllInsteadOfNotify</name> | |
128 | <ruleset>Design Rules</ruleset> | |
129 | </rule> | |
130 | <rule> | |
131 | <name>AvoidInstanceofChecksInCatchClause</name> | |
132 | <ruleset>Design Rules</ruleset> | |
133 | </rule> | |
134 | <rule> | |
135 | <name>AbstractClassWithoutAbstractMethod</name> | |
136 | <ruleset>Design Rules</ruleset> | |
137 | </rule> | |
138 | <rule> | |
139 | <name>SimplifyConditional</name> | |
140 | <ruleset>Design Rules</ruleset> | |
141 | </rule> | |
142 | <rule> | |
143 | <name>CompareObjectsWithEquals</name> | |
144 | <ruleset>Design Rules</ruleset> | |
145 | </rule> | |
146 | <rule> | |
147 | <name>PositionLiteralsFirstInComparisons</name> | |
148 | <ruleset>Design Rules</ruleset> | |
149 | </rule> | |
150 | <rule> | |
151 | <name>UnnecessaryLocalBeforeReturn</name> | |
152 | <ruleset>Design Rules</ruleset> | |
153 | </rule> | |
154 | <rule> | |
155 | <name>NonThreadSafeSingleton</name> | |
156 | <ruleset>Design Rules</ruleset> | |
157 | </rule> | |
158 | <rule> | |
159 | <name>UncommentedEmptyMethod</name> | |
160 | <ruleset>Design Rules</ruleset> | |
161 | </rule> | |
162 | <rule> | |
163 | <name>UncommentedEmptyConstructor</name> | |
164 | <ruleset>Design Rules</ruleset> | |
165 | </rule> | |
166 | <rule> | |
167 | <name>AvoidConstantsInterface</name> | |
168 | <ruleset>Design Rules</ruleset> | |
169 | </rule> | |
170 | <rule> | |
171 | <name>UnsynchronizedStaticDateFormatter</name> | |
172 | <ruleset>Design Rules</ruleset> | |
173 | </rule> | |
174 | <rule> | |
175 | <name>PreserveStackTrace</name> | |
176 | <ruleset>Design Rules</ruleset> | |
177 | </rule> | |
178 | <rule> | |
179 | <name>UseCollectionIsEmpty</name> | |
180 | <ruleset>Design Rules</ruleset> | |
181 | </rule> | |
182 | <rule> | |
183 | <name>ClassWithOnlyPrivateConstructorsShouldBeFinal</name> | |
184 | <ruleset>Design Rules</ruleset> | |
185 | </rule> | |
186 | <rule> | |
187 | <name>EmptyMethodInAbstractClassShouldBeAbstract</name> | |
188 | <ruleset>Design Rules</ruleset> | |
189 | </rule> | |
190 | <rule> | |
191 | <name>SingularField</name> | |
192 | <ruleset>Design Rules</ruleset> | |
193 | </rule> | |
194 | <rule> | |
195 | <name>ReturnEmptyArrayRatherThanNull</name> | |
196 | <ruleset>Design Rules</ruleset> | |
197 | </rule> | |
198 | <rule> | |
199 | <name>AbstractClassWithoutAnyMethod</name> | |
200 | <ruleset>Design Rules</ruleset> | |
201 | </rule> | |
202 | <rule> | |
203 | <name>AvoidCatchingThrowable</name> | |
204 | <ruleset>Strict Exception Rules</ruleset> | |
205 | </rule> | |
206 | <rule> | |
207 | <name>SignatureDeclareThrowsException</name> | |
208 | <ruleset>Type Resolution Rules</ruleset> | |
209 | </rule> | |
210 | <rule> | |
211 | <name>ExceptionAsFlowControl</name> | |
212 | <ruleset>Strict Exception Rules</ruleset> | |
213 | </rule> | |
214 | <rule> | |
215 | <name>AvoidCatchingNPE</name> | |
216 | <ruleset>Strict Exception Rules</ruleset> | |
217 | </rule> | |
218 | <rule> | |
219 | <name>AvoidThrowingRawExceptionTypes</name> | |
220 | <ruleset>Strict Exception Rules</ruleset> | |
221 | </rule> | |
222 | <rule> | |
223 | <name>AvoidThrowingNullPointerException</name> | |
224 | <ruleset>Strict Exception Rules</ruleset> | |
225 | </rule> | |
226 | <rule> | |
227 | <name>AvoidRethrowingException</name> | |
228 | <ruleset>Strict Exception Rules</ruleset> | |
229 | </rule> | |
230 | <rule> | |
231 | <name>DoNotExtendJavaLangError</name> | |
232 | <ruleset>Strict Exception Rules</ruleset> | |
233 | </rule> | |
234 | <rule> | |
235 | <name>DoNotThrowExceptionInFinally</name> | |
236 | <ruleset>Strict Exception Rules</ruleset> | |
237 | </rule> | |
238 | <rule> | |
239 | <name>AvoidThrowingNewInstanceOfSameException</name> | |
240 | <ruleset>Strict Exception Rules</ruleset> | |
241 | </rule> | |
242 | <rule> | |
243 | <name>UnusedPrivateField</name> | |
244 | <ruleset>Unused Code Rules</ruleset> | |
245 | </rule> | |
246 | <rule> | |
247 | <name>UnusedLocalVariable</name> | |
248 | <ruleset>Unused Code Rules</ruleset> | |
249 | </rule> | |
250 | <rule> | |
251 | <name>UnusedPrivateMethod</name> | |
252 | <ruleset>Unused Code Rules</ruleset> | |
253 | </rule> | |
254 | <rule> | |
255 | <name>UnusedFormalParameter</name> | |
256 | <ruleset>Unused Code Rules</ruleset> | |
257 | </rule> | |
258 | <rule> | |
259 | <name>MoreThanOneLogger</name> | |
260 | <ruleset>Java Logging Rules</ruleset> | |
261 | </rule> | |
262 | <rule> | |
263 | <name>LoggerIsNotStaticFinal</name> | |
264 | <ruleset>Java Logging Rules</ruleset> | |
265 | </rule> | |
266 | <rule> | |
267 | <name>SystemPrintln</name> | |
268 | <ruleset>Java Logging Rules</ruleset> | |
269 | </rule> | |
270 | <rule> | |
271 | <name>AvoidPrintStackTrace</name> | |
272 | <ruleset>Java Logging Rules</ruleset> | |
273 | </rule> | |
274 | <rule> | |
275 | <name>AvoidDuplicateLiterals</name> | |
276 | <ruleset>String and StringBuffer Rules</ruleset> | |
277 | </rule> | |
278 | <rule> | |
279 | <name>StringInstantiation</name> | |
280 | <ruleset>String and StringBuffer Rules</ruleset> | |
281 | </rule> | |
282 | <rule> | |
283 | <name>StringToString</name> | |
284 | <ruleset>String and StringBuffer Rules</ruleset> | |
285 | </rule> | |
286 | <rule> | |
287 | <name>InefficientStringBuffering</name> | |
288 | <ruleset>String and StringBuffer Rules</ruleset> | |
289 | </rule> | |
290 | <rule> | |
291 | <name>UnnecessaryCaseChange</name> | |
292 | <ruleset>String and StringBuffer Rules</ruleset> | |
293 | </rule> | |
294 | <rule> | |
295 | <name>UseStringBufferLength</name> | |
296 | <ruleset>String and StringBuffer Rules</ruleset> | |
297 | </rule> | |
298 | <rule> | |
299 | <name>AppendCharacterWithChar</name> | |
300 | <ruleset>String and StringBuffer Rules</ruleset> | |
301 | </rule> | |
302 | <rule> | |
303 | <name>ConsecutiveLiteralAppends</name> | |
304 | <ruleset>String and StringBuffer Rules</ruleset> | |
305 | </rule> | |
306 | <rule> | |
307 | <name>UseIndexOfChar</name> | |
308 | <ruleset>String and StringBuffer Rules</ruleset> | |
309 | </rule> | |
310 | <rule> | |
311 | <name>InefficientEmptyStringCheck</name> | |
312 | <ruleset>String and StringBuffer Rules</ruleset> | |
313 | </rule> | |
314 | <rule> | |
315 | <name>InsufficientStringBufferDeclaration</name> | |
316 | <ruleset>String and StringBuffer Rules</ruleset> | |
317 | </rule> | |
318 | <rule> | |
319 | <name>UselessStringValueOf</name> | |
320 | <ruleset>String and StringBuffer Rules</ruleset> | |
321 | </rule> | |
322 | <rule> | |
323 | <name>StringBufferInstantiationWithChar</name> | |
324 | <ruleset>String and StringBuffer Rules</ruleset> | |
325 | </rule> | |
326 | <rule> | |
327 | <name>UseEqualsToCompareStrings</name> | |
328 | <ruleset>String and StringBuffer Rules</ruleset> | |
329 | </rule> | |
330 | <rule> | |
331 | <name>AvoidStringBufferField</name> | |
332 | <ruleset>String and StringBuffer Rules</ruleset> | |
333 | </rule> | |
334 | <rule> | |
335 | <name>ReplaceVectorWithList</name> | |
336 | <ruleset>Migration Rules</ruleset> | |
337 | </rule> | |
338 | <rule> | |
339 | <name>ReplaceHashtableWithMap</name> | |
340 | <ruleset>Migration Rules</ruleset> | |
341 | </rule> | |
342 | <rule> | |
343 | <name>ReplaceEnumerationWithIterator</name> | |
344 | <ruleset>Migration Rules</ruleset> | |
345 | </rule> | |
346 | <rule> | |
347 | <name>AvoidEnumAsIdentifier</name> | |
348 | <ruleset>Migration Rules</ruleset> | |
349 | </rule> | |
350 | <rule> | |
351 | <name>AvoidAssertAsIdentifier</name> | |
352 | <ruleset>Migration Rules</ruleset> | |
353 | </rule> | |
354 | <rule> | |
355 | <name>IntegerInstantiation</name> | |
356 | <ruleset>Migration Rules</ruleset> | |
357 | </rule> | |
358 | <rule> | |
359 | <name>ByteInstantiation</name> | |
360 | <ruleset>Migration Rules</ruleset> | |
361 | </rule> | |
362 | <rule> | |
363 | <name>ShortInstantiation</name> | |
364 | <ruleset>Migration Rules</ruleset> | |
365 | </rule> | |
366 | <rule> | |
367 | <name>LongInstantiation</name> | |
368 | <ruleset>Migration Rules</ruleset> | |
369 | </rule> | |
370 | <rule> | |
371 | <name>JUnit4TestShouldUseBeforeAnnotation</name> | |
372 | <ruleset>Migration Rules</ruleset> | |
373 | </rule> | |
374 | <rule> | |
375 | <name>JUnit4TestShouldUseAfterAnnotation</name> | |
376 | <ruleset>Migration Rules</ruleset> | |
377 | </rule> | |
378 | <rule> | |
379 | <name>JUnit4TestShouldUseTestAnnotation</name> | |
380 | <ruleset>Migration Rules</ruleset> | |
381 | </rule> | |
382 | <rule> | |
383 | <name>JUnit4SuitesShouldUseSuiteAnnotation</name> | |
384 | <ruleset>Migration Rules</ruleset> | |
385 | </rule> | |
386 | <rule> | |
387 | <name>JUnitUseExpected</name> | |
388 | <ruleset>Migration Rules</ruleset> | |
389 | </rule> | |
390 | <rule> | |
391 | <name>LocalVariableCouldBeFinal</name> | |
392 | <ruleset>Optimization Rules</ruleset> | |
393 | </rule> | |
394 | <rule> | |
395 | <name>MethodArgumentCouldBeFinal</name> | |
396 | <ruleset>Optimization Rules</ruleset> | |
397 | </rule> | |
398 | <rule> | |
399 | <name>AvoidInstantiatingObjectsInLoops</name> | |
400 | <ruleset>Optimization Rules</ruleset> | |
401 | </rule> | |
402 | <rule> | |
403 | <name>UseArrayListInsteadOfVector</name> | |
404 | <ruleset>Optimization Rules</ruleset> | |
405 | </rule> | |
406 | <rule> | |
407 | <name>SimplifyStartsWith</name> | |
408 | <ruleset>Optimization Rules</ruleset> | |
409 | </rule> | |
410 | <rule> | |
411 | <name>UseStringBufferForStringAppends</name> | |
412 | <ruleset>Optimization Rules</ruleset> | |
413 | </rule> | |
414 | <rule> | |
415 | <name>UseArraysAsList</name> | |
416 | <ruleset>Optimization Rules</ruleset> | |
417 | </rule> | |
418 | <rule> | |
419 | <name>AvoidArrayLoops</name> | |
420 | <ruleset>Optimization Rules</ruleset> | |
421 | </rule> | |
422 | <rule> | |
423 | <name>UnnecessaryWrapperObjectCreation</name> | |
424 | <ruleset>Optimization Rules</ruleset> | |
425 | </rule> | |
426 | <rule> | |
427 | <name>AddEmptyString</name> | |
428 | <ruleset>Optimization Rules</ruleset> | |
429 | </rule> | |
430 | <rule> | |
431 | <name>EmptyCatchBlock</name> | |
432 | <ruleset>Basic Rules</ruleset> | |
433 | </rule> | |
434 | <rule> | |
435 | <name>EmptyIfStmt</name> | |
436 | <ruleset>Basic Rules</ruleset> | |
437 | </rule> | |
438 | <rule> | |
439 | <name>EmptyWhileStmt</name> | |
440 | <ruleset>Basic Rules</ruleset> | |
441 | </rule> | |
442 | <rule> | |
443 | <name>EmptyTryBlock</name> | |
444 | <ruleset>Basic Rules</ruleset> | |
445 | </rule> | |
446 | <rule> | |
447 | <name>EmptyFinallyBlock</name> | |
448 | <ruleset>Basic Rules</ruleset> | |
449 | </rule> | |
450 | <rule> | |
451 | <name>EmptySwitchStatements</name> | |
452 | <ruleset>Basic Rules</ruleset> | |
453 | </rule> | |
454 | <rule> | |
455 | <name>JumbledIncrementer</name> | |
456 | <ruleset>Basic Rules</ruleset> | |
457 | </rule> | |
458 | <rule> | |
459 | <name>ForLoopShouldBeWhileLoop</name> | |
460 | <ruleset>Basic Rules</ruleset> | |
461 | </rule> | |
462 | <rule> | |
463 | <name>UnnecessaryConversionTemporary</name> | |
464 | <ruleset>Basic Rules</ruleset> | |
465 | </rule> | |
466 | <rule> | |
467 | <name>OverrideBothEqualsAndHashcode</name> | |
468 | <ruleset>Basic Rules</ruleset> | |
469 | </rule> | |
470 | <rule> | |
471 | <name>DoubleCheckedLocking</name> | |
472 | <ruleset>Basic Rules</ruleset> | |
473 | </rule> | |
474 | <rule> | |
475 | <name>ReturnFromFinallyBlock</name> | |
476 | <ruleset>Basic Rules</ruleset> | |
477 | </rule> | |
478 | <rule> | |
479 | <name>EmptySynchronizedBlock</name> | |
480 | <ruleset>Basic Rules</ruleset> | |
481 | </rule> | |
482 | <rule> | |
483 | <name>UnnecessaryReturn</name> | |
484 | <ruleset>Basic Rules</ruleset> | |
485 | </rule> | |
486 | <rule> | |
487 | <name>EmptyStaticInitializer</name> | |
488 | <ruleset>Basic Rules</ruleset> | |
489 | </rule> | |
490 | <rule> | |
491 | <name>UnconditionalIfStatement</name> | |
492 | <ruleset>Basic Rules</ruleset> | |
493 | </rule> | |
494 | <rule> | |
495 | <name>EmptyStatementNotInLoop</name> | |
496 | <ruleset>Basic Rules</ruleset> | |
497 | </rule> | |
498 | <rule> | |
499 | <name>BooleanInstantiation</name> | |
500 | <ruleset>Basic Rules</ruleset> | |
501 | </rule> | |
502 | <rule> | |
503 | <name>UnnecessaryFinalModifier</name> | |
504 | <ruleset>Basic Rules</ruleset> | |
505 | </rule> | |
506 | <rule> | |
507 | <name>CollapsibleIfStatements</name> | |
508 | <ruleset>Basic Rules</ruleset> | |
509 | </rule> | |
510 | <rule> | |
511 | <name>UselessOverridingMethod</name> | |
512 | <ruleset>Basic Rules</ruleset> | |
513 | </rule> | |
514 | <rule> | |
515 | <name>ClassCastExceptionWithToArray</name> | |
516 | <ruleset>Basic Rules</ruleset> | |
517 | </rule> | |
518 | <rule> | |
519 | <name>AvoidDecimalLiteralsInBigDecimalConstructor</name> | |
520 | <ruleset>Basic Rules</ruleset> | |
521 | </rule> | |
522 | <rule> | |
523 | <name>UselessOperationOnImmutable</name> | |
524 | <ruleset>Basic Rules</ruleset> | |
525 | </rule> | |
526 | <rule> | |
527 | <name>MisplacedNullCheck</name> | |
528 | <ruleset>Basic Rules</ruleset> | |
529 | </rule> | |
530 | <rule> | |
531 | <name>UnusedNullCheckInEquals</name> | |
532 | <ruleset>Basic Rules</ruleset> | |
533 | </rule> | |
534 | <rule> | |
535 | <name>AvoidThreadGroup</name> | |
536 | <ruleset>Basic Rules</ruleset> | |
537 | </rule> | |
538 | <rule> | |
539 | <name>BrokenNullCheck</name> | |
540 | <ruleset>Basic Rules</ruleset> | |
541 | </rule> | |
542 | <rule> | |
543 | <name>BigIntegerInstantiation</name> | |
544 | <ruleset>Basic Rules</ruleset> | |
545 | </rule> | |
546 | <rule> | |
547 | <name>AvoidUsingOctalValues</name> | |
548 | <ruleset>Basic Rules</ruleset> | |
549 | </rule> | |
550 | <rule> | |
551 | <name>AvoidUsingHardCodedIP</name> | |
552 | <ruleset>Basic Rules</ruleset> | |
553 | </rule> | |
554 | <rule> | |
555 | <name>CheckResultSet</name> | |
556 | <ruleset>Basic Rules</ruleset> | |
557 | </rule> | |
558 | <rule> | |
559 | <name>AvoidMultipleUnaryOperators</name> | |
560 | <ruleset>Basic Rules</ruleset> | |
561 | </rule> | |
562 | <rule> | |
563 | <name>EmptyInitializer</name> | |
564 | <ruleset>Basic Rules</ruleset> | |
565 | </rule> | |
566 | <rule> | |
567 | <name>MethodReturnsInternalArray</name> | |
568 | <ruleset>Security Code Guidelines</ruleset> | |
569 | </rule> | |
570 | <rule> | |
571 | <name>ArrayIsStoredDirectly</name> | |
572 | <ruleset>Security Code Guidelines</ruleset> | |
573 | </rule> | |
574 | <rule> | |
575 | <name>CouplingBetweenObjects</name> | |
576 | <ruleset>Coupling Rules</ruleset> | |
577 | </rule> | |
578 | <rule> | |
579 | <name>ExcessiveImports</name> | |
580 | <ruleset>Coupling Rules</ruleset> | |
581 | </rule> | |
582 | <rule> | |
583 | <name>LooseCoupling</name> | |
584 | <ruleset>Type Resolution Rules</ruleset> | |
585 | </rule> | |
586 | <rule> | |
587 | <name>DuplicateImports</name> | |
588 | <ruleset>Import Statement Rules</ruleset> | |
589 | </rule> | |
590 | <rule> | |
591 | <name>DontImportJavaLang</name> | |
592 | <ruleset>Import Statement Rules</ruleset> | |
593 | </rule> | |
594 | <rule> | |
595 | <name>ImportFromSamePackage</name> | |
596 | <ruleset>Import Statement Rules</ruleset> | |
597 | </rule> | |
598 | <rule> | |
599 | <name>TooManyStaticImports</name> | |
600 | <ruleset>Import Statement Rules</ruleset> | |
601 | </rule> | |
602 | <rule> | |
603 | <name>JUnitStaticSuite</name> | |
604 | <ruleset>JUnit Rules</ruleset> | |
605 | </rule> | |
606 | <rule> | |
607 | <name>JUnitSpelling</name> | |
608 | <ruleset>JUnit Rules</ruleset> | |
609 | </rule> | |
610 | <rule> | |
611 | <name>JUnitAssertionsShouldIncludeMessage</name> | |
612 | <ruleset>JUnit Rules</ruleset> | |
613 | </rule> | |
614 | <rule> | |
615 | <name>JUnitTestsShouldIncludeAssert</name> | |
616 | <ruleset>JUnit Rules</ruleset> | |
617 | </rule> | |
618 | <rule> | |
619 | <name>TestClassWithoutTestCases</name> | |
620 | <ruleset>JUnit Rules</ruleset> | |
621 | </rule> | |
622 | <rule> | |
623 | <name>UnnecessaryBooleanAssertion</name> | |
624 | <ruleset>JUnit Rules</ruleset> | |
625 | </rule> | |
626 | <rule> | |
627 | <name>UseAssertEqualsInsteadOfAssertTrue</name> | |
628 | <ruleset>JUnit Rules</ruleset> | |
629 | </rule> | |
630 | <rule> | |
631 | <name>UseAssertSameInsteadOfAssertTrue</name> | |
632 | <ruleset>JUnit Rules</ruleset> | |
633 | </rule> | |
634 | <rule> | |
635 | <name>UseAssertNullInsteadOfAssertTrue</name> | |
636 | <ruleset>JUnit Rules</ruleset> | |
637 | </rule> | |
638 | <rule> | |
639 | <name>SimplifyBooleanAssertion</name> | |
640 | <ruleset>JUnit Rules</ruleset> | |
641 | </rule> | |
642 | <rule> | |
643 | <name>UnnecessaryConstructor</name> | |
644 | <ruleset>Controversial Rules</ruleset> | |
645 | </rule> | |
646 | <rule> | |
647 | <name>NullAssignment</name> | |
648 | <ruleset>Controversial Rules</ruleset> | |
649 | </rule> | |
650 | <rule> | |
651 | <name>UnusedModifier</name> | |
652 | <ruleset>Controversial Rules</ruleset> | |
653 | </rule> | |
654 | <rule> | |
655 | <name>AssignmentInOperand</name> | |
656 | <ruleset>Controversial Rules</ruleset> | |
657 | </rule> | |
658 | <rule> | |
659 | <name>AtLeastOneConstructor</name> | |
660 | <ruleset>Controversial Rules</ruleset> | |
661 | </rule> | |
662 | <rule> | |
663 | <name>DontImportSun</name> | |
664 | <ruleset>Controversial Rules</ruleset> | |
665 | </rule> | |
666 | <rule> | |
667 | <name>SuspiciousOctalEscape</name> | |
668 | <ruleset>Controversial Rules</ruleset> | |
669 | </rule> | |
670 | <rule> | |
671 | <name>CallSuperInConstructor</name> | |
672 | <ruleset>Controversial Rules</ruleset> | |
673 | </rule> | |
674 | <rule> | |
675 | <name>UnnecessaryParentheses</name> | |
676 | <ruleset>Controversial Rules</ruleset> | |
677 | </rule> | |
678 | <rule> | |
679 | <name>DefaultPackage</name> | |
680 | <ruleset>Controversial Rules</ruleset> | |
681 | </rule> | |
682 | <rule> | |
683 | <name>BooleanInversion</name> | |
684 | <ruleset>Controversial Rules</ruleset> | |
685 | </rule> | |
686 | <rule> | |
687 | <name>AvoidUsingShortType</name> | |
688 | <ruleset>Controversial Rules</ruleset> | |
689 | </rule> | |
690 | <rule> | |
691 | <name>AvoidUsingVolatile</name> | |
692 | <ruleset>Controversial Rules</ruleset> | |
693 | </rule> | |
694 | <rule> | |
695 | <name>AvoidUsingNativeCode</name> | |
696 | <ruleset>Controversial Rules</ruleset> | |
697 | </rule> | |
698 | <rule> | |
699 | <name>AvoidAccessibilityAlteration</name> | |
700 | <ruleset>Controversial Rules</ruleset> | |
701 | </rule> | |
702 | <rule> | |
703 | <name>DoNotCallGarbageCollectionExplicitly</name> | |
704 | <ruleset>Controversial Rules</ruleset> | |
705 | </rule> | |
706 | <rule> | |
707 | <name>ShortMethodName</name> | |
708 | <ruleset>Naming Rules</ruleset> | |
709 | </rule> | |
710 | <rule> | |
711 | <name>VariableNamingConventions</name> | |
712 | <ruleset>Naming Rules</ruleset> | |
713 | </rule> | |
714 | <rule> | |
715 | <name>MethodNamingConventions</name> | |
716 | <ruleset>Naming Rules</ruleset> | |
717 | </rule> | |
718 | <rule> | |
719 | <name>ClassNamingConventions</name> | |
720 | <ruleset>Naming Rules</ruleset> | |
721 | </rule> | |
722 | <rule> | |
723 | <name>AbstractNaming</name> | |
724 | <ruleset>Naming Rules</ruleset> | |
725 | </rule> | |
726 | <rule> | |
727 | <name>AvoidDollarSigns</name> | |
728 | <ruleset>Naming Rules</ruleset> | |
729 | </rule> | |
730 | <rule> | |
731 | <name>MethodWithSameNameAsEnclosingClass</name> | |
732 | <ruleset>Naming Rules</ruleset> | |
733 | </rule> | |
734 | <rule> | |
735 | <name>SuspiciousHashcodeMethodName</name> | |
736 | <ruleset>Naming Rules</ruleset> | |
737 | </rule> | |
738 | <rule> | |
739 | <name>SuspiciousConstantFieldName</name> | |
740 | <ruleset>Naming Rules</ruleset> | |
741 | </rule> | |
742 | <rule> | |
743 | <name>SuspiciousEqualsMethodName</name> | |
744 | <ruleset>Naming Rules</ruleset> | |
745 | </rule> | |
746 | <rule> | |
747 | <name>AvoidFieldNameMatchingTypeName</name> | |
748 | <ruleset>Naming Rules</ruleset> | |
749 | </rule> | |
750 | <rule> | |
751 | <name>AvoidFieldNameMatchingMethodName</name> | |
752 | <ruleset>Naming Rules</ruleset> | |
753 | </rule> | |
754 | <rule> | |
755 | <name>NoPackage</name> | |
756 | <ruleset>Naming Rules</ruleset> | |
757 | </rule> | |
758 | <rule> | |
759 | <name>PackageCase</name> | |
760 | <ruleset>Naming Rules</ruleset> | |
761 | </rule> | |
762 | <rule> | |
763 | <name>MisleadingVariableName</name> | |
764 | <ruleset>Naming Rules</ruleset> | |
765 | </rule> | |
766 | <rule> | |
767 | <name>BooleanGetMethodName</name> | |
768 | <ruleset>Naming Rules</ruleset> | |
769 | </rule> | |
770 | <rule> | |
771 | <name>ExcessiveMethodLength</name> | |
772 | <ruleset>Code Size Rules</ruleset> | |
773 | </rule> | |
774 | <rule> | |
775 | <name>ExcessiveParameterList</name> | |
776 | <ruleset>Code Size Rules</ruleset> | |
777 | </rule> | |
778 | <rule> | |
779 | <name>ExcessiveClassLength</name> | |
780 | <ruleset>Code Size Rules</ruleset> | |
781 | </rule> | |
782 | <rule> | |
783 | <name>ExcessivePublicCount</name> | |
784 | <ruleset>Code Size Rules</ruleset> | |
785 | </rule> | |
786 | <rule> | |
787 | <name>NcssMethodCount</name> | |
788 | <ruleset>Code Size Rules</ruleset> | |
789 | </rule> | |
790 | <rule> | |
791 | <name>NcssTypeCount</name> | |
792 | <ruleset>Code Size Rules</ruleset> | |
793 | </rule> | |
794 | <rule> | |
795 | <name>NcssConstructorCount</name> | |
796 | <ruleset>Code Size Rules</ruleset> | |
797 | </rule> | |
798 | <rule> | |
799 | <name>EmptyFinalizer</name> | |
800 | <ruleset>Finalizer Rules</ruleset> | |
801 | </rule> | |
802 | <rule> | |
803 | <name>FinalizeOnlyCallsSuperFinalize</name> | |
804 | <ruleset>Finalizer Rules</ruleset> | |
805 | </rule> | |
806 | <rule> | |
807 | <name>FinalizeOverloaded</name> | |
808 | <ruleset>Finalizer Rules</ruleset> | |
809 | </rule> | |
810 | <rule> | |
811 | <name>FinalizeDoesNotCallSuperFinalize</name> | |
812 | <ruleset>Finalizer Rules</ruleset> | |
813 | </rule> | |
814 | <rule> | |
815 | <name>FinalizeShouldBeProtected</name> | |
816 | <ruleset>Finalizer Rules</ruleset> | |
817 | </rule> | |
818 | <rule> | |
819 | <name>AvoidCallingFinalize</name> | |
820 | <ruleset>Finalizer Rules</ruleset> | |
821 | </rule> | |
822 | <rule> | |
823 | <name>UseCorrectExceptionLogging</name> | |
824 | <ruleset>Jakarta Commons Logging Rules</ruleset> | |
825 | </rule> | |
826 | <rule> | |
827 | <name>ProperLogger</name> | |
828 | <ruleset>Jakarta Commons Logging Rules</ruleset> | |
829 | </rule> | |
830 | <rule> | |
831 | <name>MissingSerialVersionUID</name> | |
832 | <ruleset>JavaBean Rules</ruleset> | |
833 | </rule> | |
834 | <rule> | |
835 | <name>ProperCloneImplementation</name> | |
836 | <ruleset>Clone Implementation Rules</ruleset> | |
837 | </rule> | |
838 | <rule> | |
839 | <name>CloneThrowsCloneNotSupportedException</name> | |
840 | <ruleset>Clone Implementation Rules</ruleset> | |
841 | </rule> | |
842 | <rule> | |
843 | <name>CloneMethodMustImplementCloneable</name> | |
844 | <ruleset>Type Resolution Rules</ruleset> | |
845 | </rule> | |
846 | </rules> | |
847 | <includeDerivedFiles>false</includeDerivedFiles> | |
848 | <violationsAsErrors>true</violationsAsErrors> | |
849 | </pmd> |