ruleset.xml 1.21 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?xml version="1.0"?>
<ruleset name="Ruleset for josm-mapillary-plugin"
         xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
  <description>
    This ruleset checks some rules that you should normally follow for the JOSM-wikipedia plugin.
  </description>
  <rule ref="category/java/bestpractices.xml"/>
  <rule ref="category/java/codestyle.xml">
    <exclude name="AbstractNaming"/>
    <exclude name="AvoidFinalLocalVariable"/>
    <exclude name="CommentDefaultAccessModifier"/>
    <exclude name="DefaultPackage"/>
    <exclude name="LongVariable"/>
    <exclude name="MethodArgumentCouldBeFinal"/><!-- way too many -->
    <exclude name="ShortVariable"/>
  </rule>
  <rule ref="category/java/design.xml">
    <exclude name="LawOfDemeter"/>
    <exclude name="LoosePackageCoupling"/>
  </rule>
  <rule ref="category/java/errorprone.xml"/>
  <rule ref="category/java/multithreading.xml/AvoidThreadGroup"/>
  <rule ref="category/java/multithreading.xml/DontCallThreadRun"/>
  <rule ref="category/java/multithreading.xml/NonThreadSafeSingleton" />
</ruleset>