Skip to content

Instantly share code, notes, and snippets.

@nyxcalamity
Created Dec 6, 2013
Embed
What would you like to do?
pmd config file.
<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
<description>QP Backend</description>
<rule ref="rulesets/strictexception.xml/AvoidThrowingNewInstanceOfSameException">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/EmptyInitializer">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/AvoidStringBufferField">
<priority>4</priority>
</rule>
<rule ref="rulesets/strictexception.xml/DoNotThrowExceptionInFinally">
<priority>4</priority>
</rule>
<rule ref="rulesets/codesize.xml/TooManyMethods">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/ReturnEmptyArrayRatherThanNull">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/TooFewBranchesForASwitchStatement">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/AbstractClassWithoutAnyMethod">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/AvoidMultipleUnaryOperators">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal">
<priority>4</priority>
</rule>
<rule ref="rulesets/naming.xml/PackageCase">
<priority>4</priority>
</rule>
<rule ref="rulesets/unusedcode.xml/UnusedPrivateField">
<priority>3</priority>
</rule>
<rule ref="rulesets/unusedcode.xml/UnusedLocalVariable">
<priority>3</priority>
</rule>
<rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod">
<priority>3</priority>
</rule>
<rule ref="rulesets/unusedcode.xml/UnusedFormalParameter">
<priority>3</priority>
</rule>
<rule ref="rulesets/design.xml/SingularField">
<priority>4</priority>
</rule>
<rule ref="rulesets/coupling.xml/CouplingBetweenObjects">
<priority>4</priority>
</rule>
<rule ref="rulesets/coupling.xml/ExcessiveImports">
<priority>4</priority>
</rule>
<rule ref="rulesets/optimizations.xml/AvoidInstantiatingObjectsInLoops">
<priority>4</priority>
</rule>
<rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector">
<priority>3</priority>
</rule>
<rule ref="rulesets/optimizations.xml/SimplifyStartsWith">
<priority>4</priority>
</rule>
<rule ref="rulesets/optimizations.xml/UseStringBufferForStringAppends">
<priority>4</priority>
</rule>
<rule ref="rulesets/optimizations.xml/UseArraysAsList">
<priority>3</priority>
</rule>
<rule ref="rulesets/optimizations.xml/AvoidArrayLoops">
<priority>3</priority>
</rule>
<rule ref="rulesets/optimizations.xml/UnnecessaryWrapperObjectCreation">
<priority>4</priority>
</rule>
<rule ref="rulesets/j2ee.xml/UseProperClassLoader">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/JumbledIncrementer">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/ForLoopShouldBeWhileLoop">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/UnnecessaryConversionTemporary">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/ReturnFromFinallyBlock">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/UnnecessaryReturn">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/UnconditionalIfStatement">
<priority>2</priority>
</rule>
<rule ref="rulesets/basic.xml/EmptyStatementNotInLoop">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/UnnecessaryFinalModifier">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/CollapsibleIfStatements">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/ClassCastExceptionWithToArray">
<priority>3</priority>
</rule>
<rule ref="rulesets/basic.xml/AvoidDecimalLiteralsInBigDecimalConstructor">
<priority>3</priority>
</rule>
<rule ref="rulesets/basic.xml/UselessOperationOnImmutable">
<priority>2</priority>
</rule>
<rule ref="rulesets/basic.xml/MisplacedNullCheck">
<priority>4</priority>
</rule>
<rule ref="rulesets/basic.xml/UnusedNullCheckInEquals">
<priority>3</priority>
</rule>
<rule ref="rulesets/basic.xml/BrokenNullCheck">
<priority>2</priority>
</rule>
<rule ref="rulesets/basic.xml/AvoidUsingOctalValues">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/AvoidDeeplyNestedIfStmts">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/SwitchDensity">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/ConstructorCallsOverridableMethod">
<priority>3</priority>
</rule>
<rule ref="rulesets/design.xml/AccessorClassGeneration">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/FinalFieldCouldBeStatic">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/NonStaticInitializer">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/NonCaseLabelInSwitchStatement">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/OptimizableToArrayCall">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/EqualsNull">
<priority>2</priority>
</rule>
<rule ref="rulesets/design.xml/ConfusingTernary">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/InstantiationToGetClass">
<priority>3</priority>
</rule>
<rule ref="rulesets/design.xml/IdempotentOperations">
<priority>3</priority>
</rule>
<rule ref="rulesets/design.xml/SimpleDateFormatNeedsLocale">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/ImmutableField">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/AvoidProtectedFieldInFinalClass">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/AssignmentToNonFinalStatic">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/MissingStaticMethodInNonInstantiatableClass">
<priority>3</priority>
</rule>
<rule ref="rulesets/design.xml/MissingBreakInSwitch">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/AvoidInstanceofChecksInCatchClause">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/AbstractClassWithoutAbstractMethod">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/SimplifyConditional">
<priority>3</priority>
</rule>
<rule ref="rulesets/design.xml/CompareObjectsWithEquals">
<priority>3</priority>
</rule>
<rule ref="rulesets/design.xml/UnnecessaryLocalBeforeReturn">
<priority>3</priority>
</rule>
<rule ref="rulesets/design.xml/UncommentedEmptyMethod">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/UncommentedEmptyConstructor">
<priority>4</priority>
</rule>
<rule ref="rulesets/design.xml/PreserveStackTrace">
<priority>2</priority>
</rule>
<rule ref="rulesets/design.xml/UseCollectionIsEmpty">
<priority>4</priority>
</rule>
<rule ref="rulesets/sunsecure.xml/MethodReturnsInternalArray">
<priority>2</priority>
</rule>
<rule ref="rulesets/sunsecure.xml/ArrayIsStoredDirectly">
<priority>2</priority>
</rule>
<rule ref="rulesets/strictexception.xml/AvoidCatchingThrowable">
<priority>2</priority>
</rule>
<rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException">
<priority>3</priority>
</rule>
<rule ref="rulesets/strictexception.xml/ExceptionAsFlowControl">
<priority>3</priority>
</rule>
<rule ref="rulesets/strictexception.xml/AvoidCatchingNPE">
<priority>3</priority>
</rule>
<rule ref="rulesets/strictexception.xml/AvoidThrowingNullPointerException">
<priority>3</priority>
</rule>
<rule ref="rulesets/strictexception.xml/AvoidRethrowingException">
<priority>3</priority>
</rule>
<rule ref="rulesets/javabeans.xml/BeanMembersShouldSerialize">
<priority>4</priority>
</rule>
<rule ref="rulesets/javabeans.xml/MissingSerialVersionUID">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/StringToString">
<priority>3</priority>
</rule>
<rule ref="rulesets/strings.xml/InefficientStringBuffering">
<priority>3</priority>
</rule>
<rule ref="rulesets/strings.xml/UnnecessaryCaseChange">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/UseStringBufferLength">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/AppendCharacterWithChar">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/ConsecutiveLiteralAppends">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/UseIndexOfChar">
<priority>3</priority>
</rule>
<rule ref="rulesets/strings.xml/InefficientEmptyStringCheck">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/InsufficientStringBufferDeclaration">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/UselessStringValueOf">
<priority>4</priority>
</rule>
<rule ref="rulesets/strings.xml/StringBufferInstantiationWithChar">
<priority>3</priority>
</rule>
<rule ref="rulesets/codesize.xml/ExcessivePublicCount">
<priority>4</priority>
</rule>
<rule ref="rulesets/codesize.xml/TooManyFields">
<priority>4</priority>
</rule>
<rule ref="rulesets/logging-jakarta-commons.xml/ProperLogger">
<priority>4</priority>
</rule>
<rule ref="rulesets/naming.xml/ShortVariable">
<priority>4</priority>
</rule>
<rule ref="rulesets/naming.xml/ShortMethodName">
<priority>4</priority>
</rule>
<rule ref="rulesets/naming.xml/AvoidDollarSigns">
<priority>4</priority>
</rule>
<rule ref="rulesets/naming.xml/MethodWithSameNameAsEnclosingClass">
<priority>3</priority>
</rule>
<rule ref="rulesets/naming.xml/SuspiciousHashcodeMethodName">
<priority>3</priority>
</rule>
<rule ref="rulesets/naming.xml/SuspiciousConstantFieldName">
<priority>3</priority>
</rule>
<rule ref="rulesets/naming.xml/SuspiciousEqualsMethodName">
<priority>2</priority>
</rule>
<rule ref="rulesets/naming.xml/AvoidFieldNameMatchingTypeName">
<priority>4</priority>
</rule>
<rule ref="rulesets/naming.xml/AvoidFieldNameMatchingMethodName">
<priority>4</priority>
</rule>
<rule ref="rulesets/naming.xml/MisleadingVariableName">
<priority>4</priority>
</rule>
<rule ref="rulesets/logging-java.xml/MoreThanOneLogger">
<priority>4</priority>
</rule>
<rule ref="rulesets/logging-java.xml/LoggerIsNotStaticFinal">
<priority>4</priority>
</rule>
<rule ref="rulesets/logging-java.xml/SystemPrintln">
<priority>3</priority>
</rule>
<rule ref="rulesets/logging-java.xml/AvoidPrintStackTrace">
<priority>2</priority>
</rule>
<rule ref="rulesets/design.xml/EmptyMethodInAbstractClassShouldBeAbstract">
<priority>4</priority>
</rule>
<rule ref="rulesets/imports.xml/TooManyStaticImports">
<priority>4</priority>
</rule>
<rule ref="rulesets/j2ee.xml/DoNotCallSystemExit">
<priority>1</priority>
</rule>
<rule ref="rulesets/j2ee.xml/StaticEJBFieldShouldBeFinal">
<priority>4</priority>
</rule>
<rule ref="rulesets/j2ee.xml/DoNotUseThreads">
<priority>4</priority>
</rule>
<rule ref="rulesets/strictexception.xml/DoNotExtendJavaLangError">
<priority>4</priority>
</rule>
<rule ref="rulesets/optimizations.xml/AddEmptyString">
<priority>4</priority>
</rule>
<rule ref="rulesets/naming.xml/BooleanGetMethodName">
<priority>4</priority>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment