|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" |
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | | - name="M2Eclipse PMD RuleSet" |
| 4 | + name="jsonurl-pmd-ruleset" |
5 | 5 | xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> |
6 | | - <description>M2Eclipse PMD RuleSet</description> |
| 6 | + <description>jsonurl-pmd-ruleset</description> |
7 | 7 | <rule ref="category/java/bestpractices.xml/AbstractClassWithoutAbstractMethod"/> |
8 | 8 | <rule ref="category/java/bestpractices.xml/AccessorClassGeneration"/> |
9 | 9 | <rule ref="category/java/bestpractices.xml/AccessorMethodGeneration"/> |
|
18 | 18 | <rule ref="category/java/bestpractices.xml/CheckResultSet"/> |
19 | 19 | <rule ref="category/java/bestpractices.xml/ConstantsInInterface"/> |
20 | 20 | <rule ref="category/java/bestpractices.xml/DefaultLabelNotLastInSwitchStmt"/> |
21 | | - <rule ref="category/jsp/bestpractices.xml/DontNestJsfInJstlIteration"/> |
22 | 21 | <rule ref="category/java/bestpractices.xml/DoubleBraceInitialization"/> |
23 | 22 | <rule ref="category/java/bestpractices.xml/ForLoopCanBeForeach"/> |
24 | 23 | <rule ref="category/java/bestpractices.xml/ForLoopVariableCount"/> |
|
34 | 33 | <rule ref="category/java/bestpractices.xml/LooseCoupling"/> |
35 | 34 | <rule ref="category/java/bestpractices.xml/MethodReturnsInternalArray"/> |
36 | 35 | <rule ref="category/java/bestpractices.xml/MissingOverride"/> |
37 | | - <rule ref="category/jsp/bestpractices.xml/NoClassAttribute"/> |
38 | | - <rule ref="category/jsp/bestpractices.xml/NoHtmlComments"/> |
39 | | - <rule ref="category/jsp/bestpractices.xml/NoJspForward"/> |
40 | 36 | <rule ref="category/java/bestpractices.xml/OneDeclarationPerLine"/> |
41 | 37 | <rule ref="category/java/bestpractices.xml/PreserveStackTrace"/> |
42 | 38 | <rule ref="category/java/bestpractices.xml/ReplaceEnumerationWithIterator"/> |
|
63 | 59 | <rule ref="category/java/codestyle.xml/AvoidProtectedMethodInFinalClassNotExtending"/> |
64 | 60 | <rule ref="category/java/codestyle.xml/AvoidUsingNativeCode"/> |
65 | 61 | <rule ref="category/java/codestyle.xml/BooleanGetMethodName"/> |
66 | | -<!-- |
67 | | - <rule ref="category/java/codestyle.xml/CallSuperInConstructor"/> |
68 | | ---> |
69 | 62 | <rule ref="category/java/codestyle.xml/ClassNamingConventions"/> |
70 | 63 | <rule ref="category/java/codestyle.xml/ConfusingTernary"/> |
71 | 64 | <rule ref="category/java/codestyle.xml/ControlStatementBraces"/> |
72 | 65 | <rule ref="category/java/codestyle.xml/DontImportJavaLang"/> |
73 | 66 | <rule ref="category/java/codestyle.xml/DuplicateImports"/> |
74 | | - <rule ref="category/jsp/codestyle.xml/DuplicateJspImports"/> |
75 | 67 | <rule ref="category/java/codestyle.xml/EmptyMethodInAbstractClassShouldBeAbstract"/> |
76 | 68 | <rule ref="category/java/codestyle.xml/ExtendsObject"/> |
77 | 69 | <rule ref="category/java/codestyle.xml/FieldDeclarationsShouldBeAtStartOfClass"/> |
|
87 | 79 | <rule ref="category/java/codestyle.xml/MDBAndSessionBeanNamingConvention"/> |
88 | 80 | <rule ref="category/java/codestyle.xml/MethodNamingConventions"/> |
89 | 81 | <rule ref="category/java/codestyle.xml/NoPackage"/> |
90 | | -<!-- |
91 | | - <rule ref="category/java/codestyle.xml/OnlyOneReturn"/> |
92 | | ---> |
93 | 82 | <rule ref="category/java/codestyle.xml/PackageCase"/> |
94 | 83 | <rule ref="category/java/codestyle.xml/PrematureDeclaration"/> |
95 | 84 | <rule ref="category/java/codestyle.xml/RemoteInterfaceNamingConvention"/> |
|
108 | 97 | <rule ref="category/java/codestyle.xml/UselessParentheses"/> |
109 | 98 | <rule ref="category/java/codestyle.xml/UselessQualifiedThis"/> |
110 | 99 | <rule ref="category/java/codestyle.xml/UseShortArrayInitializer"/> |
111 | | - <rule ref="category/java/codestyle.xml/UseUnderscoresInNumericLiterals"/> |
112 | 100 | <rule ref="category/java/design.xml/AbstractClassWithoutAnyMethod"/> |
113 | 101 | <rule ref="category/java/design.xml/AvoidCatchingGenericException"/> |
114 | 102 | <rule ref="category/java/design.xml/AvoidDeeplyNestedIfStmts"/> |
|
125 | 113 | <rule ref="category/java/design.xml/DoNotExtendJavaLangError"/> |
126 | 114 | <rule ref="category/java/design.xml/ExceptionAsFlowControl"/> |
127 | 115 | <!-- |
128 | | - <rule ref="category/java/design.xml/ExcessiveClassLength"/> |
129 | | ---> |
130 | 116 | <rule ref="category/java/design.xml/ExcessiveImports"/> |
131 | | -<!-- |
132 | | - <rule ref="category/java/design.xml/ExcessiveMethodLength"/> |
133 | 117 | --> |
134 | 118 | <rule ref="category/java/design.xml/ExcessiveParameterList"/> |
135 | 119 | <rule ref="category/java/design.xml/ExcessivePublicCount"/> |
136 | 120 | <rule ref="category/java/design.xml/FinalFieldCouldBeStatic"/> |
137 | | -<!-- |
138 | | - <rule ref="category/java/design.xml/GodClass"/> |
139 | | ---> |
140 | 121 | <rule ref="category/java/design.xml/ImmutableField"/> |
141 | | -<!-- |
142 | | - <rule ref="category/java/design.xml/LawOfDemeter"/> |
143 | | ---> |
144 | 122 | <rule ref="category/java/design.xml/LogicInversion"/> |
145 | | -<!-- |
146 | | - <rule ref="category/java/design.xml/LoosePackageCoupling"/> |
147 | | ---> |
148 | 123 | <rule ref="category/java/design.xml/NcssCount"/> |
149 | | - <rule ref="category/jsp/design.xml/NoInlineScript"/> |
150 | | - <rule ref="category/jsp/design.xml/NoInlineStyleInformation"/> |
151 | | - <rule ref="category/jsp/design.xml/NoLongScripts"/> |
152 | | - <rule ref="category/jsp/design.xml/NoScriptlets"/> |
153 | 124 | <rule ref="category/java/design.xml/NPathComplexity"/> |
154 | 125 | <rule ref="category/java/design.xml/SignatureDeclareThrowsException"/> |
155 | 126 | <rule ref="category/java/design.xml/SimplifiedTernary"/> |
|
160 | 131 | <rule ref="category/java/design.xml/SingularField"/> |
161 | 132 | <rule ref="category/java/design.xml/SwitchDensity"/> |
162 | 133 | <rule ref="category/java/design.xml/TooManyFields"/> |
163 | | -<!-- |
164 | | - <rule ref="category/java/design.xml/TooManyMethods"/> |
165 | | ---> |
166 | 134 | <rule ref="category/java/design.xml/UselessOverridingMethod"/> |
167 | 135 | <rule ref="category/java/design.xml/UseObjectForClearerAPI"/> |
168 | 136 | <rule ref="category/java/design.xml/UseUtilityClass"/> |
|
181 | 149 | <rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor"/> |
182 | 150 | <rule ref="category/java/errorprone.xml/AvoidDuplicateLiterals"/> |
183 | 151 | <rule ref="category/java/errorprone.xml/AvoidEnumAsIdentifier"/> |
| 152 | +<!-- |
184 | 153 | <rule ref="category/java/errorprone.xml/AvoidFieldNameMatchingMethodName"/> |
| 154 | +--> |
185 | 155 | <rule ref="category/java/errorprone.xml/AvoidFieldNameMatchingTypeName"/> |
186 | 156 | <rule ref="category/java/errorprone.xml/AvoidInstanceofChecksInCatchClause"/> |
187 | 157 | <rule ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition"/> |
188 | 158 | <rule ref="category/java/errorprone.xml/AvoidLosingExceptionInformation"/> |
189 | 159 | <rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators"/> |
190 | 160 | <rule ref="category/java/errorprone.xml/AvoidUsingOctalValues"/> |
191 | 161 | <rule ref="category/java/errorprone.xml/BadComparison"/> |
192 | | -<!-- |
193 | | - <rule ref="category/java/errorprone.xml/BeanMembersShouldSerialize"/> |
194 | | ---> |
195 | 162 | <rule ref="category/java/errorprone.xml/BrokenNullCheck"/> |
196 | 163 | <rule ref="category/java/errorprone.xml/CallSuperFirst"/> |
197 | 164 | <rule ref="category/java/errorprone.xml/CallSuperLast"/> |
|
206 | 173 | <rule ref="category/java/errorprone.xml/ConstructorCallsOverridableMethod"/> |
207 | 174 | <rule ref="category/java/errorprone.xml/DetachedTestCase"/> |
208 | 175 | <rule ref="category/java/errorprone.xml/DoNotCallGarbageCollectionExplicitly"/> |
209 | | - <rule ref="category/java/errorprone.xml/DoNotCallSystemExit"/> |
210 | 176 | <rule ref="category/java/errorprone.xml/DoNotExtendJavaLangThrowable"/> |
211 | 177 | <rule ref="category/java/errorprone.xml/DoNotHardCodeSDCard"/> |
212 | 178 | <rule ref="category/java/errorprone.xml/DoNotThrowExceptionInFinally"/> |
|
231 | 197 | <rule ref="category/java/errorprone.xml/IdempotentOperations"/> |
232 | 198 | <rule ref="category/java/errorprone.xml/ImportFromSamePackage"/> |
233 | 199 | <rule ref="category/java/errorprone.xml/InstantiationToGetClass"/> |
234 | | -<!-- error when running from CLI |
235 | | - <rule ref="category/pom/errorprone.xml/InvalidDependencyTypes"/> |
236 | | ---> |
237 | 200 | <rule ref="category/java/errorprone.xml/InvalidLogMessageFormat"/> |
238 | | - <rule ref="category/jsp/errorprone.xml/JspEncoding"/> |
239 | 201 | <rule ref="category/java/errorprone.xml/JumbledIncrementer"/> |
240 | 202 | <rule ref="category/java/errorprone.xml/JUnitSpelling"/> |
241 | 203 | <rule ref="category/java/errorprone.xml/JUnitStaticSuite"/> |
|
249 | 211 | <rule ref="category/java/errorprone.xml/NonStaticInitializer"/> |
250 | 212 | <rule ref="category/java/errorprone.xml/NullAssignment"/> |
251 | 213 | <rule ref="category/java/errorprone.xml/OverrideBothEqualsAndHashcode"/> |
252 | | -<!-- error when running from CLI |
253 | | - <rule ref="category/pom/errorprone.xml/ProjectVersionAsDependencyVersion"/> |
254 | | ---> |
255 | 214 | <rule ref="category/java/errorprone.xml/ProperCloneImplementation"/> |
256 | 215 | <rule ref="category/java/errorprone.xml/ProperLogger"/> |
257 | 216 | <rule ref="category/java/errorprone.xml/ReturnEmptyArrayRatherThanNull"/> |
|
283 | 242 | <rule ref="category/java/multithreading.xml/DoubleCheckedLocking"/> |
284 | 243 | <rule ref="category/java/multithreading.xml/NonThreadSafeSingleton"/> |
285 | 244 | <rule ref="category/java/multithreading.xml/UnsynchronizedStaticFormatter"/> |
286 | | -<!-- |
287 | | - <rule ref="category/java/multithreading.xml/UseConcurrentHashMap"/> |
288 | | ---> |
289 | 245 | <rule ref="category/java/multithreading.xml/UseNotifyAllInsteadOfNotify"/> |
290 | 246 | <rule ref="category/java/performance.xml/AddEmptyString"/> |
291 | 247 | <rule ref="category/java/performance.xml/AppendCharacterWithChar"/> |
|
307 | 263 | <rule ref="category/java/performance.xml/OptimizableToArrayCall"/> |
308 | 264 | <rule ref="category/java/performance.xml/RedundantFieldInitializer"/> |
309 | 265 | <rule ref="category/java/performance.xml/ShortInstantiation"/> |
310 | | - <rule ref="category/java/performance.xml/SimplifyStartsWith"/> |
311 | 266 | <rule ref="category/java/performance.xml/StringInstantiation"/> |
312 | 267 | <rule ref="category/java/performance.xml/StringToString"/> |
313 | 268 | <rule ref="category/java/performance.xml/TooFewBranchesForASwitchStatement"/> |
|
321 | 276 | <rule ref="category/java/performance.xml/UseStringBufferLength"/> |
322 | 277 | <rule ref="category/java/security.xml/HardCodedCryptoKey"/> |
323 | 278 | <rule ref="category/jsp/security.xml/IframeMissingSrcAttribute"/> |
324 | | - <rule ref="category/java/security.xml/InsecureCryptoIv"/> |
325 | 279 | <rule ref="category/jsp/security.xml/NoUnsanitizedJSPExpression"/> |
326 | 280 | </ruleset> |
0 commit comments