etc.pmd-rules.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fb-contrib Show documentation
Show all versions of fb-contrib Show documentation
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.
<?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>