-
Notifications
You must be signed in to change notification settings - Fork 11
/
favorites.xml
181 lines (179 loc) · 17.1 KB
/
favorites.xml
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--This file has been generated by the pmd-migration tool-->
<!--https://github.com/asarkar/pmd-migration-tool-->
<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Default Maven PMD Plugin Ruleset"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>
The Favorites rule-set contains links to rules that I like to use.
Usually I
combine this ruleset with the unusedcode.xml, basic.xml, and import.xml
rulesets for my projects.
This ruleset also serves as an example of how to do a custom ruleset.
</description>
<rule name="AccessorMethodGeneration" ref="category/java/bestpractices.xml/AccessorMethodGeneration"/>
<rule name="AvoidPrintStackTrace" ref="category/java/bestpractices.xml/AvoidPrintStackTrace"/>
<rule name="AvoidUsingHardCodedIP" ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP"/>
<rule name="CheckResultSet" ref="category/java/bestpractices.xml/CheckResultSet"/>
<rule name="ConstantsInInterface" ref="category/java/bestpractices.xml/ConstantsInInterface"/>
<rule name="DefaultLabelNotLastInSwitchStmt" ref="category/java/bestpractices.xml/DefaultLabelNotLastInSwitchStmt"/>
<rule name="ForLoopCanBeForeach" ref="category/java/bestpractices.xml/ForLoopCanBeForeach"/>
<rule name="JUnit4SuitesShouldUseSuiteAnnotation" ref="category/java/bestpractices.xml/JUnit4SuitesShouldUseSuiteAnnotation"/>
<rule name="JUnit4TestShouldUseAfterAnnotation" ref="category/java/bestpractices.xml/JUnit4TestShouldUseAfterAnnotation"/>
<rule name="JUnit4TestShouldUseBeforeAnnotation" ref="category/java/bestpractices.xml/JUnit4TestShouldUseBeforeAnnotation"/>
<rule name="JUnit4TestShouldUseTestAnnotation" ref="category/java/bestpractices.xml/JUnit4TestShouldUseTestAnnotation"/>
<rule name="JUnitUseExpected" ref="category/java/bestpractices.xml/JUnitUseExpected"/>
<rule name="LooseCoupling" ref="category/java/bestpractices.xml/LooseCoupling"/>
<rule name="LooseCoupling" ref="category/java/bestpractices.xml/LooseCoupling"/>
<rule name="OneDeclarationPerLine" ref="category/java/bestpractices.xml/OneDeclarationPerLine"/>
<rule name="PositionLiteralsFirstInCaseInsensitiveComparisons" ref="category/java/bestpractices.xml/PositionLiteralsFirstInCaseInsensitiveComparisons"/>
<rule name="PositionLiteralsFirstInComparisons" ref="category/java/bestpractices.xml/PositionLiteralsFirstInComparisons"/>
<rule name="PreserveStackTrace" ref="category/java/bestpractices.xml/PreserveStackTrace"/>
<rule name="ReplaceEnumerationWithIterator" ref="category/java/bestpractices.xml/ReplaceEnumerationWithIterator"/>
<rule name="ReplaceHashtableWithMap" ref="category/java/bestpractices.xml/ReplaceHashtableWithMap"/>
<rule name="ReplaceVectorWithList" ref="category/java/bestpractices.xml/ReplaceVectorWithList"/>
<rule name="SwitchStmtsShouldHaveDefault" ref="category/java/bestpractices.xml/SwitchStmtsShouldHaveDefault"/>
<rule name="SystemPrintln" ref="category/java/bestpractices.xml/SystemPrintln"/>
<rule name="UnusedFormalParameter" ref="category/java/bestpractices.xml/UnusedFormalParameter"/>
<rule name="UnusedImports" ref="category/java/bestpractices.xml/UnusedImports"/>
<rule name="UnusedImports" ref="category/java/bestpractices.xml/UnusedImports"/>
<rule name="UnusedLocalVariable" ref="category/java/bestpractices.xml/UnusedLocalVariable"/>
<rule name="UnusedPrivateField" ref="category/java/bestpractices.xml/UnusedPrivateField"/>
<rule name="UnusedPrivateMethod" ref="category/java/bestpractices.xml/UnusedPrivateMethod"/>
<rule name="UseCollectionIsEmpty" ref="category/java/bestpractices.xml/UseCollectionIsEmpty"/>
<rule name="UseVarargs" ref="category/java/bestpractices.xml/UseVarargs"/>
<rule name="AvoidDollarSigns" ref="category/java/codestyle.xml/AvoidDollarSigns"/>
<rule name="AvoidProtectedFieldInFinalClass" ref="category/java/codestyle.xml/AvoidProtectedFieldInFinalClass"/>
<rule name="AvoidProtectedMethodInFinalClassNotExtending" ref="category/java/codestyle.xml/AvoidProtectedMethodInFinalClassNotExtending"/>
<rule name="AvoidUsingNativeCode" ref="category/java/codestyle.xml/AvoidUsingNativeCode"/>
<rule name="BooleanGetMethodName" ref="category/java/codestyle.xml/BooleanGetMethodName"/>
<rule name="ClassNamingConventions" ref="category/java/codestyle.xml/ClassNamingConventions"/>
<rule name="DontImportJavaLang" ref="category/java/codestyle.xml/DontImportJavaLang"/>
<rule name="DuplicateImports" ref="category/java/codestyle.xml/DuplicateImports"/>
<rule name="EmptyMethodInAbstractClassShouldBeAbstract" ref="category/java/codestyle.xml/EmptyMethodInAbstractClassShouldBeAbstract"/>
<rule name="ExtendsObject" ref="category/java/codestyle.xml/ExtendsObject"/>
<rule name="FieldDeclarationsShouldBeAtStartOfClass" ref="category/java/codestyle.xml/FieldDeclarationsShouldBeAtStartOfClass"/>
<rule name="ForLoopShouldBeWhileLoop" ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop"/>
<rule name="MethodNamingConventions" ref="category/java/codestyle.xml/MethodNamingConventions"/>
<rule name="NoPackage" ref="category/java/codestyle.xml/NoPackage"/>
<rule name="PackageCase" ref="category/java/codestyle.xml/PackageCase"/>
<rule name="PrematureDeclaration" ref="category/java/codestyle.xml/PrematureDeclaration"/>
<rule name="TooManyStaticImports" ref="category/java/codestyle.xml/TooManyStaticImports"/>
<rule name="UnnecessaryConstructor" ref="category/java/codestyle.xml/UnnecessaryConstructor"/>
<rule name="UnnecessaryFullyQualifiedName" ref="category/java/codestyle.xml/UnnecessaryFullyQualifiedName"/>
<rule name="UnnecessaryLocalBeforeReturn" ref="category/java/codestyle.xml/UnnecessaryLocalBeforeReturn"/>
<rule name="AvoidDeeplyNestedIfStmts" ref="category/java/design.xml/AvoidDeeplyNestedIfStmts"/>
<rule name="CollapsibleIfStatements" ref="category/java/design.xml/CollapsibleIfStatements"/>
<rule name="ExcessiveClassLength" ref="category/java/design.xml/ExcessiveClassLength"/>
<rule name="ExcessiveMethodLength" ref="category/java/design.xml/ExcessiveMethodLength"/>
<rule name="ExcessiveParameterList" ref="category/java/design.xml/ExcessiveParameterList"/>
<rule name="FinalFieldCouldBeStatic" ref="category/java/design.xml/FinalFieldCouldBeStatic"/>
<rule name="GodClass" ref="category/java/design.xml/GodClass"/>
<rule name="LogicInversion" ref="category/java/design.xml/LogicInversion"/>
<rule name="NcssCount" ref="category/java/design.xml/NcssCount"/>
<rule name="SimplifiedTernary" ref="category/java/design.xml/SimplifiedTernary"/>
<rule name="SimplifyBooleanExpressions" ref="category/java/design.xml/SimplifyBooleanExpressions"/>
<rule name="SimplifyBooleanReturns" ref="category/java/design.xml/SimplifyBooleanReturns"/>
<rule name="SimplifyConditional" ref="category/java/design.xml/SimplifyConditional"/>
<rule name="SingularField" ref="category/java/design.xml/SingularField"/>
<rule name="SwitchDensity" ref="category/java/design.xml/SwitchDensity"/>
<rule name="UseObjectForClearerAPI" ref="category/java/design.xml/UseObjectForClearerAPI"/>
<rule name="UncommentedEmptyConstructor" ref="category/java/documentation.xml/UncommentedEmptyConstructor"/>
<rule name="AssignmentToNonFinalStatic" ref="category/java/errorprone.xml/AssignmentToNonFinalStatic"/>
<rule name="AvoidAccessibilityAlteration" ref="category/java/errorprone.xml/AvoidAccessibilityAlteration"/>
<rule name="AvoidAssertAsIdentifier" ref="category/java/errorprone.xml/AvoidAssertAsIdentifier"/>
<rule name="AvoidBranchingStatementAsLastInLoop" ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop"/>
<rule name="AvoidCallingFinalize" ref="category/java/errorprone.xml/AvoidCallingFinalize"/>
<rule name="AvoidDecimalLiteralsInBigDecimalConstructor" ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor"/>
<rule name="AvoidEnumAsIdentifier" ref="category/java/errorprone.xml/AvoidEnumAsIdentifier"/>
<rule name="AvoidInstanceofChecksInCatchClause" ref="category/java/errorprone.xml/AvoidInstanceofChecksInCatchClause"/>
<rule name="AvoidLiteralsInIfCondition" ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition"/>
<rule name="AvoidMultipleUnaryOperators" ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators"/>
<rule name="AvoidUsingOctalValues" ref="category/java/errorprone.xml/AvoidUsingOctalValues"/>
<rule name="BadComparison" ref="category/java/errorprone.xml/BadComparison"/>
<rule name="BrokenNullCheck" ref="category/java/errorprone.xml/BrokenNullCheck"/>
<rule name="CheckSkipResult" ref="category/java/errorprone.xml/CheckSkipResult"/>
<rule name="ClassCastExceptionWithToArray" ref="category/java/errorprone.xml/ClassCastExceptionWithToArray"/>
<rule name="CloneMethodMustBePublic" ref="category/java/errorprone.xml/CloneMethodMustBePublic"/>
<rule name="CloneMethodMustImplementCloneable" ref="category/java/errorprone.xml/CloneMethodMustImplementCloneable"/>
<rule name="CloneMethodMustImplementCloneable" ref="category/java/errorprone.xml/CloneMethodMustImplementCloneable"/>
<rule name="CloneMethodReturnTypeMustMatchClassName" ref="category/java/errorprone.xml/CloneMethodReturnTypeMustMatchClassName"/>
<rule name="CloneThrowsCloneNotSupportedException" ref="category/java/errorprone.xml/CloneThrowsCloneNotSupportedException"/>
<rule name="CloseResource" ref="category/java/errorprone.xml/CloseResource"/>
<rule name="CompareObjectsWithEquals" ref="category/java/errorprone.xml/CompareObjectsWithEquals"/>
<rule name="DoNotCallGarbageCollectionExplicitly" ref="category/java/errorprone.xml/DoNotCallGarbageCollectionExplicitly"/>
<rule name="DontImportSun" ref="category/java/errorprone.xml/DontImportSun"/>
<rule name="DontUseFloatTypeForLoopIndices" ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices"/>
<rule name="EmptyFinalizer" ref="category/java/errorprone.xml/EmptyFinalizer"/>
<rule name="EqualsNull" ref="category/java/errorprone.xml/EqualsNull"/>
<rule name="FinalizeDoesNotCallSuperFinalize" ref="category/java/errorprone.xml/FinalizeDoesNotCallSuperFinalize"/>
<rule name="FinalizeOnlyCallsSuperFinalize" ref="category/java/errorprone.xml/FinalizeOnlyCallsSuperFinalize"/>
<rule name="FinalizeOverloaded" ref="category/java/errorprone.xml/FinalizeOverloaded"/>
<rule name="FinalizeShouldBeProtected" ref="category/java/errorprone.xml/FinalizeShouldBeProtected"/>
<rule name="IdempotentOperations" ref="category/java/errorprone.xml/IdempotentOperations"/>
<rule name="ImportFromSamePackage" ref="category/java/errorprone.xml/ImportFromSamePackage"/>
<rule name="InstantiationToGetClass" ref="category/java/errorprone.xml/InstantiationToGetClass"/>
<rule name="InvalidSlf4jMessageFormat" ref="category/java/errorprone.xml/InvalidSlf4jMessageFormat"/>
<rule name="JumbledIncrementer" ref="category/java/errorprone.xml/JumbledIncrementer"/>
<rule name="MethodWithSameNameAsEnclosingClass" ref="category/java/errorprone.xml/MethodWithSameNameAsEnclosingClass"/>
<rule name="MisplacedNullCheck" ref="category/java/errorprone.xml/MisplacedNullCheck"/>
<rule name="MissingBreakInSwitch" ref="category/java/errorprone.xml/MissingBreakInSwitch"/>
<rule name="MissingStaticMethodInNonInstantiatableClass" ref="category/java/errorprone.xml/MissingStaticMethodInNonInstantiatableClass"/>
<rule name="MoreThanOneLogger" ref="category/java/errorprone.xml/MoreThanOneLogger"/>
<rule name="NonCaseLabelInSwitchStatement" ref="category/java/errorprone.xml/NonCaseLabelInSwitchStatement"/>
<rule name="NonStaticInitializer" ref="category/java/errorprone.xml/NonStaticInitializer"/>
<rule name="OverrideBothEqualsAndHashcode" ref="category/java/errorprone.xml/OverrideBothEqualsAndHashcode"/>
<rule name="ProperCloneImplementation" ref="category/java/errorprone.xml/ProperCloneImplementation"/>
<rule name="ReturnFromFinallyBlock" ref="category/java/errorprone.xml/ReturnFromFinallyBlock"/>
<rule name="SimpleDateFormatNeedsLocale" ref="category/java/errorprone.xml/SimpleDateFormatNeedsLocale"/>
<rule name="SingleMethodSingleton" ref="category/java/errorprone.xml/SingleMethodSingleton"/>
<rule name="SingletonClassReturningNewInstance" ref="category/java/errorprone.xml/SingletonClassReturningNewInstance"/>
<rule name="StringBufferInstantiationWithChar" ref="category/java/errorprone.xml/StringBufferInstantiationWithChar"/>
<rule name="SuspiciousEqualsMethodName" ref="category/java/errorprone.xml/SuspiciousEqualsMethodName"/>
<rule name="SuspiciousOctalEscape" ref="category/java/errorprone.xml/SuspiciousOctalEscape"/>
<rule name="UnconditionalIfStatement" ref="category/java/errorprone.xml/UnconditionalIfStatement"/>
<rule name="UnnecessaryCaseChange" ref="category/java/errorprone.xml/UnnecessaryCaseChange"/>
<rule name="UseCorrectExceptionLogging" ref="category/java/errorprone.xml/UseCorrectExceptionLogging"/>
<rule name="UseEqualsToCompareStrings" ref="category/java/errorprone.xml/UseEqualsToCompareStrings"/>
<rule name="AvoidThreadGroup" ref="category/java/multithreading.xml/AvoidThreadGroup"/>
<rule name="DontCallThreadRun" ref="category/java/multithreading.xml/DontCallThreadRun"/>
<rule name="DoubleCheckedLocking" ref="category/java/multithreading.xml/DoubleCheckedLocking"/>
<rule name="NonThreadSafeSingleton" ref="category/java/multithreading.xml/NonThreadSafeSingleton"/>
<rule name="UnsynchronizedStaticDateFormatter" ref="category/java/multithreading.xml/UnsynchronizedStaticDateFormatter"/>
<rule name="UseNotifyAllInsteadOfNotify" ref="category/java/multithreading.xml/UseNotifyAllInsteadOfNotify"/>
<rule name="AddEmptyString" ref="category/java/performance.xml/AddEmptyString"/>
<rule name="AppendCharacterWithChar" ref="category/java/performance.xml/AppendCharacterWithChar"/>
<rule name="AvoidArrayLoops" ref="category/java/performance.xml/AvoidArrayLoops"/>
<rule name="AvoidUsingShortType" ref="category/java/performance.xml/AvoidUsingShortType"/>
<rule name="BigIntegerInstantiation" ref="category/java/performance.xml/BigIntegerInstantiation"/>
<rule name="BooleanInstantiation" ref="category/java/performance.xml/BooleanInstantiation"/>
<rule name="ByteInstantiation" ref="category/java/performance.xml/ByteInstantiation"/>
<rule name="ConsecutiveAppendsShouldReuse" ref="category/java/performance.xml/ConsecutiveAppendsShouldReuse"/>
<rule name="InefficientStringBuffering" ref="category/java/performance.xml/InefficientStringBuffering"/>
<rule name="InsufficientStringBufferDeclaration" ref="category/java/performance.xml/InsufficientStringBufferDeclaration"/>
<rule name="IntegerInstantiation" ref="category/java/performance.xml/IntegerInstantiation"/>
<rule name="LongInstantiation" ref="category/java/performance.xml/LongInstantiation"/>
<rule name="OptimizableToArrayCall" ref="category/java/performance.xml/OptimizableToArrayCall"/>
<rule name="RedundantFieldInitializer" ref="category/java/performance.xml/RedundantFieldInitializer"/>
<rule name="ShortInstantiation" ref="category/java/performance.xml/ShortInstantiation"/>
<rule name="SimplifyStartsWith" ref="category/java/performance.xml/SimplifyStartsWith"/>
<rule name="StringInstantiation" ref="category/java/performance.xml/StringInstantiation"/>
<rule name="StringToString" ref="category/java/performance.xml/StringToString"/>
<rule name="TooFewBranchesForASwitchStatement" ref="category/java/performance.xml/TooFewBranchesForASwitchStatement"/>
<rule name="UnnecessaryWrapperObjectCreation" ref="category/java/performance.xml/UnnecessaryWrapperObjectCreation"/>
<rule name="UseArrayListInsteadOfVector" ref="category/java/performance.xml/UseArrayListInsteadOfVector"/>
<rule name="UseArraysAsList" ref="category/java/performance.xml/UseArraysAsList"/>
<rule name="UseIndexOfChar" ref="category/java/performance.xml/UseIndexOfChar"/>
<rule name="UseStringBufferLength" ref="category/java/performance.xml/UseStringBufferLength"/>
<rule name="UselessStringValueOf" ref="category/java/performance.xml/UselessStringValueOf"/>
<!--
<rule name="GuardLogStatement" ref="category/java/bestpractices.xml/GuardLogStatement"/>
<rule name="GuardLogStatement" ref="category/java/bestpractices.xml/GuardLogStatement"/>
<rule name="GuardLogStatement" ref="category/java/bestpractices.xml/GuardLogStatement"/>
<rule name="UselessParentheses" ref="category/java/codestyle.xml/UselessParentheses"/>
<rule name="LawOfDemeter" ref="category/java/design.xml/LawOfDemeter"/>
<rule name="DataClass" ref="category/java/design.xml/DataClass"/>
<rule name="MissingSerialVersionUID" ref="category/java/errorprone.xml/MissingSerialVersionUID"/>
<rule name="ShortClassName" ref="category/java/codestyle.xml/ShortClassName"/>
<rule name="UseConcurrentHashMap" ref="category/java/multithreading.xml/UseConcurrentHashMap"/>
-->
</ruleset>