|
19 | 19 | under the License. |
20 | 20 |
|
21 | 21 | --> |
22 | | -<ruleset name="Maven Ruleset" |
23 | | - xmlns="http://pmd.sf.net/ruleset/1.0.0" |
24 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
25 | | - xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" |
26 | | - xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> |
| 22 | +<ruleset name="CloudStack PMD Ruleset" |
| 23 | + xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"> |
27 | 24 |
|
28 | 25 | <description> |
29 | 26 | Ruleset that brings all the rulesets we want from the pmd jar, because |
30 | 27 | the maven-pmd-plugin doesn't find them otherwise. This is also the place |
31 | 28 | to add our own future rulesets, if any. |
32 | 29 | </description> |
33 | 30 |
|
34 | | - <rule ref="rulesets/java/basic.xml"/> |
35 | | - <rule ref="rulesets/java/braces.xml"/> |
36 | | - <rule ref="rulesets/java/clone.xml"/> |
37 | | - <rule ref="rulesets/java/codesize.xml"/> |
38 | | - <rule ref="rulesets/java/comments.xml"> |
| 31 | + <rule ref="category/java/basic.xml"/> |
| 32 | + <rule ref="category/java/braces.xml"/> |
| 33 | + <rule ref="category/java/clone.xml"/> |
| 34 | + <rule ref="category/java/codesize.xml"/> |
| 35 | + <rule ref="category/java/comments.xml"> |
39 | 36 | <!-- We shouldn't limit the number of lines in the header of a class --> |
40 | 37 | <exclude name="CommentSize"/> |
41 | 38 | <exclude name="CommentRequired" /> |
42 | 39 | </rule> |
43 | | - <rule ref="rulesets/java/controversial.xml"> |
| 40 | + <rule ref="category/java/controversial.xml"> |
44 | 41 | <!-- The rule is good, but is not properly applied. It forces you to statically declare it as ConcurrentHashMap --> |
45 | 42 | <exclude name="UseConcurrentHashMap"/> |
46 | 43 | <exclude name="CallSuperInConstructor"/> |
|
50 | 47 | <exclude name="DataflowAnomalyAnalysis" /> |
51 | 48 | <exclude name="UseObjectForClearerAPI" /> |
52 | 49 | </rule> |
53 | | - <rule ref="rulesets/java/coupling.xml"> |
| 50 | + <rule ref="category/java/coupling.xml"> |
54 | 51 | <exclude name="ExcessiveImports" /> |
55 | 52 | <exclude name="LawOfDemeter"/> |
56 | 53 | </rule> |
57 | | - <rule ref="rulesets/java/design.xml"> |
| 54 | + <rule ref="category/java/design.xml"> |
58 | 55 | <exclude name="ConstructorCallsOverridableMethod"/> |
59 | 56 | <exclude name="AbstractClassWithoutAbstractMethod"/> |
60 | 57 | <exclude name="AvoidSynchronizedAtMethodLevel"/> |
61 | 58 | </rule> |
62 | | - <rule ref="rulesets/java/empty.xml"/> |
63 | | - <rule ref="rulesets/java/finalizers.xml"/> |
64 | | - <rule ref="rulesets/java/imports.xml"/> |
65 | | - <rule ref="rulesets/java/j2ee.xml"/> |
66 | | - <rule ref="rulesets/java/junit.xml"/> |
67 | | - <rule ref="rulesets/java/logging-java.xml"/> |
68 | | - <rule ref="rulesets/java/naming.xml"> |
| 59 | + <rule ref="category/java/empty.xml"/> |
| 60 | + <rule ref="category/java/finalizers.xml"/> |
| 61 | + <rule ref="category/java/imports.xml"/> |
| 62 | + <rule ref="category/java/j2ee.xml"/> |
| 63 | + <rule ref="category/java/junit.xml"/> |
| 64 | + <rule ref="category/java/logging-java.xml"/> |
| 65 | + <rule ref="category/java/naming.xml"> |
69 | 66 | <exclude name="ShortVariable"/> |
70 | 67 | <exclude name="AbstractNaming"/> |
71 | 68 | </rule> |
72 | | - <rule ref="rulesets/java/naming.xml/LongVariable"> |
| 69 | + <rule ref="category/java/naming.xml/LongVariable"> |
73 | 70 | <properties> |
74 | 71 | <property name="minimum" value="32"/> |
75 | 72 | </properties> |
76 | 73 | </rule> |
77 | | - <rule ref="rulesets/java/optimizations.xml"/> |
78 | | - <rule ref="rulesets/java/strictexception.xml"/> |
79 | | - <rule ref="rulesets/java/strings.xml"/> |
80 | | - <rule ref="rulesets/java/sunsecure.xml"/> |
81 | | - <rule ref="rulesets/java/typeresolution.xml"/> |
82 | | - <rule ref="rulesets/java/unnecessary.xml"/> |
83 | | - <rule ref="rulesets/java/unusedcode.xml"/> |
| 74 | + <rule ref="category/java/optimizations.xml"/> |
| 75 | + <rule ref="category/java/strictexception.xml"/> |
| 76 | + <rule ref="category/java/strings.xml"/> |
| 77 | + <rule ref="category/java/sunsecure.xml"/> |
| 78 | + <rule ref="category/java/typeresolution.xml"/> |
| 79 | + <rule ref="category/java/unnecessary.xml"/> |
| 80 | + <rule ref="category/java/unusedcode.xml"/> |
84 | 81 | </ruleset> |
0 commit comments