|
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | 4 | name="pmd" |
5 | 5 | xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> |
6 | | - <description>PMD Plugin preferences rule set</description> |
| 6 | + <description>PMD Plugin preferences rule set</description> |
| 7 | + <exclude-pattern>.*/test/.*</exclude-pattern> |
7 | 8 | <rule ref="rulesets/java/design.xml/AbstractClassWithoutAbstractMethod"/> |
8 | 9 | <rule ref="rulesets/java/design.xml/AbstractClassWithoutAnyMethod"/> |
9 | 10 | <rule ref="rulesets/java/optimizations.xml/AddEmptyString"/> |
|
27 | 28 | <rule ref="rulesets/java/migrating.xml/AvoidEnumAsIdentifier"/> |
28 | 29 | <rule ref="rulesets/java/controversial.xml/AvoidFinalLocalVariable"/> |
29 | 30 | <rule ref="rulesets/java/design.xml/AvoidInstanceofChecksInCatchClause"/> |
30 | | - <rule ref="rulesets/java/optimizations.xml/AvoidInstantiatingObjectsInLoops"/> |
31 | 31 | <rule ref="rulesets/java/strictexception.xml/AvoidLosingExceptionInformation"/> |
32 | 32 | <rule ref="rulesets/java/basic.xml/AvoidMultipleUnaryOperators"/> |
33 | 33 | <rule ref="rulesets/java/controversial.xml/AvoidPrefixingMethodParameters"/> |
|
69 | 69 | <rule ref="rulesets/java/basic.xml/CollapsibleIfStatements"/> |
70 | 70 | <rule ref="rulesets/vm/basic.xml/CollapsibleIfStatements"/> |
71 | 71 | <rule ref="rulesets/java/comments.xml/CommentContent"/> |
72 | | - <rule ref="rulesets/java/comments.xml/CommentSize"> |
73 | | - <properties> |
74 | | - <property name="maxLineLength" value="100"/> |
75 | | - </properties> |
76 | | - </rule> |
77 | 72 | <rule ref="rulesets/java/design.xml/CompareObjectsWithEquals"/> |
78 | 73 | <rule ref="rulesets/java/strings.xml/ConsecutiveAppendsShouldReuse"/> |
79 | 74 | <rule ref="rulesets/java/strings.xml/ConsecutiveLiteralAppends"/> |
80 | 75 | <rule ref="rulesets/ecmascript/basic.xml/ConsistentReturn"/> |
81 | 76 | <rule ref="rulesets/java/design.xml/ConstructorCallsOverridableMethod"/> |
82 | | - <rule ref="rulesets/java/coupling.xml/CouplingBetweenObjects"/> |
83 | | - <rule ref="rulesets/plsql/codesize.xml/CyclomaticComplexity"> |
84 | | - <properties> |
85 | | - <property name="reportLevel" value="14"/> |
86 | | - </properties> |
87 | | - </rule> |
88 | | - <rule ref="rulesets/java/codesize.xml/CyclomaticComplexity"/> |
89 | 77 | <rule ref="rulesets/java/design.xml/DefaultLabelNotLastInSwitchStmt"/> |
90 | 78 | <rule ref="rulesets/java/controversial.xml/DoNotCallGarbageCollectionExplicitly"/> |
91 | 79 | <rule ref="rulesets/java/j2ee.xml/DoNotCallSystemExit"/> |
|
103 | 91 | <rule ref="rulesets/jsp/basic.xml/DuplicateJspImports"/> |
104 | 92 | <rule ref="rulesets/java/finalizers.xml/EmptyFinalizer"/> |
105 | 93 | <rule ref="rulesets/java/empty.xml/EmptyFinallyBlock"/> |
| 94 | + <rule ref="rulesets/java/empty.xml/EmptyCatchBlock"> |
| 95 | + <properties> |
| 96 | + <property name="allowCommentedBlocks" value="true"/> |
| 97 | + </properties> |
| 98 | + </rule> |
106 | 99 | <rule ref="rulesets/vm/basic.xml/EmptyForeachStmt"/> |
107 | 100 | <rule ref="rulesets/java/empty.xml/EmptyIfStmt"/> |
108 | 101 | <rule ref="rulesets/vm/basic.xml/EmptyIfStmt"/> |
|
127 | 120 | <rule ref="rulesets/plsql/codesize.xml/ExcessivePackageSpecificationLength"/> |
128 | 121 | <rule ref="rulesets/plsql/codesize.xml/ExcessiveParameterList"/> |
129 | 122 | <rule ref="rulesets/java/codesize.xml/ExcessiveParameterList"/> |
130 | | - <rule ref="rulesets/java/codesize.xml/ExcessivePublicCount"/> |
131 | 123 | <rule ref="rulesets/vm/basic.xml/ExcessiveTemplateLength"/> |
132 | 124 | <rule ref="rulesets/plsql/codesize.xml/ExcessiveTypeLength"/> |
133 | 125 | <rule ref="rulesets/java/basic.xml/ExtendsObject"/> |
|
165 | 157 | <rule ref="rulesets/java/junit.xml/JUnitSpelling"/> |
166 | 158 | <rule ref="rulesets/java/junit.xml/JUnitStaticSuite"/> |
167 | 159 | <rule ref="rulesets/java/junit.xml/JUnitTestsShouldIncludeAssert"/> |
168 | | - <rule ref="rulesets/java/migrating.xml/JUnitUseExpected"/> |
169 | 160 | <rule ref="rulesets/jsp/basic.xml/JspEncoding"/> |
170 | 161 | <rule ref="rulesets/java/basic.xml/JumbledIncrementer"/> |
171 | 162 | <rule ref="rulesets/java/j2ee.xml/LocalHomeNamingConvention"/> |
|
185 | 176 | <rule ref="rulesets/java/javabeans.xml/MissingSerialVersionUID"/> |
186 | 177 | <rule ref="rulesets/java/design.xml/MissingStaticMethodInNonInstantiatableClass"/> |
187 | 178 | <rule ref="rulesets/xml/basic.xml/MistypedCDATASection"/> |
188 | | - <rule ref="rulesets/java/codesize.xml/ModifiedCyclomaticComplexity"/> |
189 | 179 | <rule ref="rulesets/java/logging-java.xml/MoreThanOneLogger"/> |
190 | | - <rule ref="rulesets/plsql/codesize.xml/NPathComplexity"/> |
191 | | - <rule ref="rulesets/java/codesize.xml/NPathComplexity"/> |
192 | 180 | <rule ref="rulesets/java/codesize.xml/NcssConstructorCount"/> |
193 | 181 | <rule ref="rulesets/plsql/codesize.xml/NcssMethodCount"/> |
194 | 182 | <rule ref="rulesets/java/codesize.xml/NcssMethodCount"/> |
|
233 | 221 | </properties> |
234 | 222 | </rule> |
235 | 223 | <rule ref="rulesets/java/migrating.xml/ShortInstantiation"/> |
236 | | - <rule ref="rulesets/java/naming.xml/ShortMethodName"/> |
237 | 224 | <rule ref="rulesets/java/strictexception.xml/SignatureDeclareThrowsException"/> |
238 | 225 | <rule ref="rulesets/java/design.xml/SimpleDateFormatNeedsLocale"/> |
239 | 226 | <rule ref="rulesets/java/junit.xml/SimplifyBooleanAssertion"/> |
|
243 | 230 | <rule ref="rulesets/java/optimizations.xml/SimplifyStartsWith"/> |
244 | 231 | <rule ref="rulesets/java/design.xml/SingularField"/> |
245 | 232 | <rule ref="rulesets/java/j2ee.xml/StaticEJBFieldShouldBeFinal"/> |
246 | | - <rule ref="rulesets/java/codesize.xml/StdCyclomaticComplexity"/> |
247 | 233 | <rule ref="rulesets/java/strings.xml/StringBufferInstantiationWithChar"/> |
248 | 234 | <rule ref="rulesets/java/strings.xml/StringInstantiation"/> |
249 | 235 | <rule ref="rulesets/java/strings.xml/StringToString"/> |
|
306 | 292 | <rule ref="rulesets/java/optimizations.xml/UseStringBufferForStringAppends"/> |
307 | 293 | <rule ref="rulesets/java/strings.xml/UseStringBufferLength"/> |
308 | 294 | <rule ref="rulesets/java/design.xml/UseUtilityClass"/> |
309 | | - <rule ref="rulesets/java/design.xml/UseVarargs"/> |
310 | 295 | <rule ref="rulesets/java/basic.xml/UselessOperationOnImmutable"/> |
311 | | - <rule ref="rulesets/java/basic.xml/UselessOverridingMethod"/> |
312 | 296 | <rule ref="rulesets/java/basic.xml/UselessParentheses"/> |
313 | 297 | <rule ref="rulesets/java/strings.xml/UselessStringValueOf"/> |
314 | 298 | <rule ref="rulesets/java/braces.xml/WhileLoopsMustUseBraces"/> |
|
0 commit comments