<?xml version="1.0"?>
<ruleset name="Custom ruleset"
    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 my code for bad stuff
  </description>

  <rule ref="category/java/errorprone.xml"/>
  <rule ref="category/java/bestpractices.xml"/>
  <rule ref="category/java/performance.xml"/>
  <rule ref="category/java/codestyle.xml"/>
  <rule ref="category/java/design.xml"/>

  <!-- Now we'll customize a rule's property value -->
  <rule ref="category/java/design.xml/CyclomaticComplexity">
    <properties>
        <property name="classReportLevel" value="5"/>
        <property name="methodReportLevel" value="5"/>
    </properties>
  </rule>

</ruleset>
<?xml version="1.0"?>
<ruleset name="Custom ruleset"
    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 my code for bad stuff
  </description>

  <rule ref="category/java/errorprone.xml"/>
  <rule ref="category/java/bestpractices.xml"/>
  <rule ref="category/java/performance.xml"/>
  <rule ref="category/java/codestyle.xml"/>
  <rule ref="category/java/design.xml">
  	<exclude name="LoosePackageCoupling"/>
  </rule>

  <!-- Now we'll customize a rule's property value -->
  <rule ref="category/java/design.xml/CyclomaticComplexity">
    <properties>
        <property name="classReportLevel" value="5"/>
        <property name="methodReportLevel" value="5"/>
    </properties>
  </rule>  
</ruleset>
Fix warning in build - disabling LoosePackageCoupling
Fix warning in build - disabling LoosePackageCoupling