source: josm/trunk/tools/pmd/josm-ruleset.xml@ 12199

Last change on this file since 12199 was 12199, checked in by Don-vip, 7 years ago

checkstyle/PMD/findbugs

File size: 2.7 KB
Line 
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="AvoidCatchingGenericException"/>
32 <exclude name="AvoidRethrowingException"/>
33 </rule>
34 <rule ref="rulesets/java/strings.xml">
35 <exclude name="AvoidDuplicateLiterals"/>
36 <exclude name="ConsecutiveLiteralAppends"/>
37 <exclude name="AvoidStringBufferField"/>
38 <exclude name="StringToString"/>
39 <exclude name="UselessStringValueOf"/>
40 <exclude name="InefficientEmptyStringCheck"/>
41 </rule>
42 <rule ref="rulesets/java/typeresolution.xml">
43 <exclude name="LooseCoupling"/>
44 <exclude name="SignatureDeclareThrowsException"/>
45 </rule>
46 <rule ref="rulesets/java/typeresolution.xml/SignatureDeclareThrowsException">
47 <properties>
48 <property name="violationSuppressXPath" value="//MethodDeclaration/../Annotation/MarkerAnnotation/Name[@Image='Override']"/>
49 <property name="IgnoreJUnitCompletely" value="true"/>
50 </properties>
51 </rule>
52 <rule ref="rulesets/java/unnecessary.xml">
53 <exclude name="UselessParentheses"/>
54 <exclude name="UselessOverridingMethod"/>
55 </rule>
56 <rule ref="rulesets/java/unusedcode.xml">
57 <exclude name="UnusedFormalParameter"/>
58 </rule>
59 <rule ref="rulesets/java/unusedcode.xml/UnusedFormalParameter">
60 <properties>
61 <property name="violationSuppressXPath" value="//Annotation[MarkerAnnotation/Name/@Image='Deprecated']/..[MethodDeclaration|ConstructorDeclaration]"/>
62 </properties>
63 </rule>
64
65</ruleset>
Note: See TracBrowser for help on using the repository browser.