Changeset 11739 in josm for trunk/tools


Ignore:
Timestamp:
2017-03-17T23:03:26+01:00 (2 years ago)
Author:
Don-vip
Message:

enable more PMD rules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/pmd/josm-ruleset.xml

    r11713 r11739  
    2222        <exclude name="MethodArgumentCouldBeFinal"/>
    2323  </rule>
    24   <rule ref="rulesets/java/strictexception.xml"/>
    25   <rule ref="rulesets/java/strings.xml"/>
    26   <rule ref="rulesets/java/typeresolution.xml"/>
     24  <rule ref="rulesets/java/strictexception.xml"/> -->
     25  <rule ref="rulesets/java/strings.xml">
     26        <exclude name="AvoidDuplicateLiterals"/>
     27        <exclude name="ConsecutiveLiteralAppends"/>
     28        <exclude name="AvoidStringBufferField"/>
     29        <exclude name="StringToString"/>
     30        <exclude name="UselessStringValueOf"/>
     31  </rule>
     32  <rule ref="rulesets/java/typeresolution.xml">
     33        <exclude name="LooseCoupling"/>
     34        <exclude name="SignatureDeclareThrowsException"/>
     35  </rule>
     36  <rule ref="rulesets/java/typeresolution.xml/SignatureDeclareThrowsException">
     37    <properties>
     38        <property name="violationSuppressXPath" value="//MethodDeclaration/../Annotation/MarkerAnnotation/Name[@Image='Override']"/>
     39        <property name="IgnoreJUnitCompletely" value="true"/>
     40    </properties>
     41  </rule>
    2742  <rule ref="rulesets/java/unnecessary.xml">
    2843        <exclude name="UselessParentheses"/>
    29   </rule> -->
     44        <exclude name="UselessOverridingMethod"/>
     45  </rule>
    3046  <rule ref="rulesets/java/unusedcode.xml">
    3147        <exclude name="UnusedFormalParameter"/>
Note: See TracChangeset for help on using the changeset viewer.