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

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

add Ant target to run PMD (only few rules for now), fix violations

File size: 1.6 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  </rule>
24  <rule ref="rulesets/java/strictexception.xml"/>
25  <rule ref="rulesets/java/strings.xml"/>
26  <rule ref="rulesets/java/typeresolution.xml"/>
27  <rule ref="rulesets/java/unnecessary.xml">
28        <exclude name="UselessParentheses"/>
29  </rule> -->
30  <rule ref="rulesets/java/unusedcode.xml">
31        <exclude name="UnusedFormalParameter"/>
32  </rule>
33  <rule ref="rulesets/java/unusedcode.xml/UnusedFormalParameter">
34    <properties>
35        <property name="violationSuppressXPath" value="//Annotation[MarkerAnnotation/Name/@Image='Deprecated']/..[MethodDeclaration|ConstructorDeclaration]"/>
36    </properties>
37  </rule>
38
39</ruleset>
Note: See TracBrowser for help on using the repository browser.