All Downloads are FREE. Search and download functionalities are using the official Maven repository.

etc.pmd-rules.xml Maven / Gradle / Ivy

Go to download

An auxiliary findbugs.sourceforge.net plugin for java bug detectors that fall outside the narrow scope of detectors to be packaged with the product itself.

There is a newer version: 7.6.8
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<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>
  Selected PMD rules for fb-contrib
  </description>
  <rule ref="rulesets/java/basic.xml">
    <!-- these are used for readability -->
    <exclude name="CollapsibleIfStatements"/>
  </rule>
  <rule ref="rulesets/java/design.xml">
    <!-- not really necessary -->
    <exclude name="ImmutableField"/>
    <!-- not always appropriate -->
    <exclude name="SwitchStmtsShouldHaveDefault"/>
    <!-- switching on strings is quite efficient -->
    <exclude name="TooFewBranchesForASwitchStatement"/>
    <!-- would take serious refactoring in some cases -->
    <exclude name="GodClass"/>
    <!-- we already check this ourselves -->
    <exclude name="MissingBreakInSwitch"/>

    <!-- good rules, but not priority -->
    <exclude name="AvoidDeeplyNestedIfStmts"/>
    <exclude name="ConfusingTernary"/>
    <exclude name="SwitchDensity"/>
  </rule>
  <rule ref="rulesets/java/unnecessary.xml">
    <!-- these are used for readability -->
    <exclude name="UselessParentheses"/>
  </rule>
</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy