1 | <?xml version="1.0"?>
|
---|
2 | <ruleset name="JOSM ruleset"
|
---|
3 | xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
|
---|
4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
---|
5 | xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
|
---|
6 |
|
---|
7 | <description>JOSM PMD ruleset</description>
|
---|
8 |
|
---|
9 | <!-- <rule ref="rulesets/java/basic.xml"/>
|
---|
10 | <rule ref="rulesets/java/braces.xml"/>
|
---|
11 | <rule ref="rulesets/java/clone.xml"/>
|
---|
12 | <rule ref="rulesets/java/codesize.xml"/>
|
---|
13 | <rule ref="rulesets/java/comments.xml"/>
|
---|
14 | <rule ref="rulesets/java/design.xml"/>
|
---|
15 | <rule ref="rulesets/java/empty.xml"/>
|
---|
16 | <rule ref="rulesets/java/finalizers.xml"/>
|
---|
17 | <rule ref="rulesets/java/imports.xml"/>
|
---|
18 | <rule ref="rulesets/java/migrating.xml"/>
|
---|
19 | <rule ref="rulesets/java/naming.xml"/>-->
|
---|
20 | <rule ref="rulesets/java/optimizations.xml">
|
---|
21 | <exclude name="LocalVariableCouldBeFinal"/>
|
---|
22 | <exclude name="MethodArgumentCouldBeFinal"/>
|
---|
23 | <exclude name="AvoidInstantiatingObjectsInLoops"/>
|
---|
24 | <exclude name="PrematureDeclaration"/>
|
---|
25 | <exclude name="SimplifyStartsWith"/>
|
---|
26 | <exclude name="UseStringBufferForStringAppends"/>
|
---|
27 | <exclude name="UseArrayListInsteadOfVector"/>
|
---|
28 | </rule>
|
---|
29 | <rule ref="rulesets/java/strictexception.xml">
|
---|
30 | <exclude name="ExceptionAsFlowControl"/>
|
---|
31 | <exclude name="AvoidRethrowingException"/>
|
---|
32 | </rule>
|
---|
33 | <rule ref="rulesets/java/strings.xml">
|
---|
34 | <exclude name="AvoidDuplicateLiterals"/>
|
---|
35 | <exclude name="ConsecutiveLiteralAppends"/>
|
---|
36 | <exclude name="AvoidStringBufferField"/>
|
---|
37 | <exclude name="StringToString"/>
|
---|
38 | <exclude name="UselessStringValueOf"/>
|
---|
39 | <exclude name="InefficientEmptyStringCheck"/>
|
---|
40 | </rule>
|
---|
41 | <rule ref="rulesets/java/typeresolution.xml">
|
---|
42 | <exclude name="LooseCoupling"/>
|
---|
43 | <exclude name="SignatureDeclareThrowsException"/>
|
---|
44 | </rule>
|
---|
45 | <rule ref="rulesets/java/typeresolution.xml/SignatureDeclareThrowsException">
|
---|
46 | <properties>
|
---|
47 | <property name="violationSuppressXPath" value="//MethodDeclaration/../Annotation/MarkerAnnotation/Name[@Image='Override']"/>
|
---|
48 | <property name="IgnoreJUnitCompletely" value="true"/>
|
---|
49 | </properties>
|
---|
50 | </rule>
|
---|
51 | <rule ref="rulesets/java/unnecessary.xml">
|
---|
52 | <exclude name="UselessParentheses"/>
|
---|
53 | <exclude name="UselessOverridingMethod"/>
|
---|
54 | </rule>
|
---|
55 | <rule ref="rulesets/java/unusedcode.xml">
|
---|
56 | <exclude name="UnusedFormalParameter"/>
|
---|
57 | </rule>
|
---|
58 | <rule ref="rulesets/java/unusedcode.xml/UnusedFormalParameter">
|
---|
59 | <properties>
|
---|
60 | <property name="violationSuppressXPath" value="//Annotation[MarkerAnnotation/Name/@Image='Deprecated']/..[MethodDeclaration|ConstructorDeclaration]"/>
|
---|
61 | </properties>
|
---|
62 | </rule>
|
---|
63 |
|
---|
64 | </ruleset>
|
---|