source: osm/applications/editors/josm/plugins/mapillary/.settings/pmd-ruleset.xml@ 32579

Last change on this file since 32579 was 32579, checked in by floscher, 9 years ago

[mapillary] Update PMD to 5.5.0 and also check naming rules

File size: 2.0 KB
Line 
1<?xml version="1.0"?>
2<ruleset name="Ruleset for josm-mapillary-plugin"
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 <description>
7 This ruleset checks some rules that you should normally follow for the josm-mapillary-plugin.
8 </description>
9 <rule ref="rulesets/java/basic.xml"/>
10 <rule ref="rulesets/java/braces.xml">
11 <exclude name="IfStmtsMustUseBraces"/>
12 </rule>
13 <rule ref="rulesets/java/clone.xml"/>
14
15 <rule ref="rulesets/java/controversial.xml/UnnecessaryConstructor"/>
16 <rule ref="rulesets/java/controversial.xml/AssignmentInOperand"/>
17 <rule ref="rulesets/java/controversial.xml/DontImportSun"/>
18 <rule ref="rulesets/java/controversial.xml/SuspiciousOctalEscape"/>
19 <rule ref="rulesets/java/controversial.xml/UnnecessaryParentheses"/>
20 <rule ref="rulesets/java/controversial.xml/DefaultPackage"/>
21
22 <rule ref="rulesets/java/coupling.xml">
23 <exclude name="LoosePackageCoupling" />
24 <exclude name="LawOfDemeter" />
25 </rule>
26 <rule ref="rulesets/java/design.xml">
27 <exclude name="AvoidSynchronizedAtMethodLevel" />
28 <exclude name="ConfusingTernary" />
29 </rule>
30 <rule ref="rulesets/java/empty.xml"/>
31 <rule ref="rulesets/java/finalizers.xml"/>
32 <rule ref="rulesets/java/imports.xml"/>
33 <rule ref="rulesets/java/naming.xml">
34 <exclude name="ShortVariable"/>
35 <exclude name="LongVariable"/>
36 <exclude name="AbstractNaming"/>
37 </rule>
38 <rule ref="rulesets/java/optimizations.xml">
39 <exclude name="LocalVariableCouldBeFinal" />
40 <exclude name="MethodArgumentCouldBeFinal" />
41 </rule>
42 <rule ref="rulesets/java/strictexception.xml"/>
43 <rule ref="rulesets/java/strings.xml"/>
44 <rule ref="rulesets/java/sunsecure.xml"/>
45 <rule ref="rulesets/java/typeresolution.xml"/>
46 <rule ref="rulesets/java/unnecessary.xml"/>
47 <rule ref="rulesets/java/unusedcode.xml"/>
48</ruleset>
Note: See TracBrowser for help on using the repository browser.