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

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

PMD - disable "InefficientEmptyStringCheck"

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