org.sonar.plugins.pmd.rules.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-pmd-plugin Show documentation
Show all versions of sonar-pmd-plugin Show documentation
PMD is a tool that looks for potential problems like possible bugs, dead code, suboptimal code, overcomplicated expressions or duplicate code.
<rules> <rule key="DontCallThreadRun"> <priority>MAJOR</priority> <configKey>rulesets/java/basic.xml/DontCallThreadRun</configKey> <status>DEPRECATED</status> </rule> <rule key="GuardDebugLogging"> <priority>MAJOR</priority> <configKey>rulesets/java/logging-jakarta-commons.xml/GuardDebugLogging</configKey> </rule> <rule key="GenericsNaming"> <priority>MAJOR</priority> <tag>naming</tag> <configKey>rulesets/java/naming.xml/GenericsNaming</configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidCatchingGenericException"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey>rulesets/java/strictexception.xml/AvoidCatchingGenericException</configKey> </rule> <rule key="AvoidLosingExceptionInformation"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey>rulesets/java/strictexception.xml/AvoidLosingExceptionInformation</configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidLiteralsInIfCondition"> <priority>MAJOR</priority> <configKey>rulesets/java/controversial.xml/AvoidLiteralsInIfCondition</configKey> </rule> <rule key="UseConcurrentHashMap"> <priority>MAJOR</priority> <tag>multithreading</tag> <configKey>rulesets/java/controversial.xml/UseConcurrentHashMap</configKey> </rule> <rule key="DoNotHardCodeSDCard"> <priority>MAJOR</priority> <configKey>rulesets/java/android.xml/DoNotHardCodeSDCard</configKey> </rule> <rule key="AvoidThrowingNewInstanceOfSameException"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey>rulesets/java/strictexception.xml/AvoidThrowingNewInstanceOfSameException</configKey> </rule> <rule key="CallSuperFirst"> <priority>MAJOR</priority> <configKey>rulesets/java/android.xml/CallSuperFirst</configKey> </rule> <rule key="CallSuperLast"> <priority>MAJOR</priority> <configKey>rulesets/java/android.xml/CallSuperLast</configKey> </rule> <rule key="EmptyInitializer"> <priority>MAJOR</priority> <configKey>rulesets/java/empty.xml/EmptyInitializer</configKey> <status>DEPRECATED</status> </rule> <rule key="CyclomaticComplexity"> <priority>MAJOR</priority> <tag>size</tag> <configKey>rulesets/java/codesize.xml/CyclomaticComplexity</configKey> <param key="reportLevel" type="INTEGER"> <defaultValue>10</defaultValue> </param> <param key="showClassesComplexity" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> <param key="showMethodsComplexity" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="AvoidStringBufferField"> <priority>MAJOR</priority> <configKey>rulesets/java/strings.xml/AvoidStringBufferField</configKey> </rule> <rule key="DoNotThrowExceptionInFinally"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/strictexception.xml/DoNotThrowExceptionInFinally]]></configKey> <status>DEPRECATED</status> </rule> <rule key="TooManyMethods"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/TooManyMethods]]></configKey> <param key="maxmethods" type="INTEGER"> <defaultValue>10</defaultValue> </param> </rule> <rule key="ReturnEmptyArrayRatherThanNull"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/ReturnEmptyArrayRatherThanNull]]></configKey> <status>DEPRECATED</status> </rule> <rule key="TooFewBranchesForASwitchStatement"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/TooFewBranchesForASwitchStatement]]></configKey> <param key="minimumNumberCaseForASwitch" type="INTEGER"> <defaultValue>3</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="AbstractClassWithoutAnyMethod"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AbstractClassWithoutAnyMethod]]></configKey> </rule> <rule key="DoNotCallGarbageCollectionExplicitly"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/controversial.xml/DoNotCallGarbageCollectionExplicitly]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidMultipleUnaryOperators"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/AvoidMultipleUnaryOperators]]></configKey> <status>DEPRECATED</status> </rule> <rule key="DoubleCheckedLocking"> <priority>MAJOR</priority> <tag>multithreading</tag> <configKey><![CDATA[rulesets/java/basic.xml/DoubleCheckedLocking]]></configKey> </rule> <rule key="NPathComplexity"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/NPathComplexity]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>200</defaultValue> </param> </rule> <rule key="SimplifyBooleanReturns"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/SimplifyBooleanReturns]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SimplifyBooleanExpressions"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/SimplifyBooleanExpressions]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SwitchStmtsShouldHaveDefault"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/SwitchStmtsShouldHaveDefault]]></configKey> <status>DEPRECATED</status> </rule> <rule key="DefaultLabelNotLastInSwitchStmt"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/DefaultLabelNotLastInSwitchStmt]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ClassWithOnlyPrivateConstructorsShouldBeFinal"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal]]></configKey> </rule> <rule key="AvoidFinalLocalVariable"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/AvoidFinalLocalVariable]]></configKey> </rule> <rule key="UnnecessaryParentheses"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/UnnecessaryParentheses]]></configKey> <status>DEPRECATED</status> </rule> <rule key="OverrideBothEqualsAndHashcode"> <priority>BLOCKER</priority> <tag>bug</tag> <configKey><![CDATA[rulesets/java/basic.xml/OverrideBothEqualsAndHashcode]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnusedImports"> <priority>INFO</priority> <configKey><![CDATA[rulesets/java/imports.xml/UnusedImports]]></configKey> <status>DEPRECATED</status> </rule> <rule key="LocalVariableCouldBeFinal"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/LocalVariableCouldBeFinal]]></configKey> </rule> <rule key="AbstractNaming"> <priority>MAJOR</priority> <tag>naming</tag> <configKey><![CDATA[rulesets/java/naming.xml/AbstractNaming]]></configKey> <status>DEPRECATED</status> </rule> <rule key="NoPackage"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/NoPackage]]></configKey> <status>DEPRECATED</status> </rule> <rule key="PackageCase"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/PackageCase]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ByteInstantiation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/ByteInstantiation]]></configKey> </rule> <rule key="ShortInstantiation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/ShortInstantiation]]></configKey> </rule> <rule key="LongInstantiation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/LongInstantiation]]></configKey> </rule> <rule key="ProperCloneImplementation"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/clone.xml/ProperCloneImplementation]]></configKey> <status>DEPRECATED</status> </rule> <rule key="EmptyFinalizer"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/finalizers.xml/EmptyFinalizer]]></configKey> </rule> <rule key="FinalizeOnlyCallsSuperFinalize"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/finalizers.xml/FinalizeOnlyCallsSuperFinalize]]></configKey> <status>DEPRECATED</status> </rule> <rule key="FinalizeOverloaded"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/finalizers.xml/FinalizeOverloaded]]></configKey> <status>DEPRECATED</status> </rule> <rule key="FinalizeDoesNotCallSuperFinalize"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/finalizers.xml/FinalizeDoesNotCallSuperFinalize]]></configKey> <status>DEPRECATED</status> </rule> <rule key="FinalizeShouldBeProtected"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/finalizers.xml/FinalizeShouldBeProtected]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidCallingFinalize"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/finalizers.xml/AvoidCallingFinalize]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnusedPrivateField"> <priority>MAJOR</priority> <tag>unused-code</tag> <configKey><![CDATA[rulesets/java/unusedcode.xml/UnusedPrivateField]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnusedLocalVariable"> <priority>MAJOR</priority> <tag>unused-code</tag> <configKey><![CDATA[rulesets/java/unusedcode.xml/UnusedLocalVariable]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnusedPrivateMethod"> <priority>MAJOR</priority> <tag>unused-code</tag> <configKey><![CDATA[rulesets/java/unusedcode.xml/UnusedPrivateMethod]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnusedFormalParameter"> <priority>MAJOR</priority> <tag>unused-code</tag> <configKey><![CDATA[rulesets/java/unusedcode.xml/UnusedFormalParameter]]></configKey> </rule> <rule key="UnnecessaryConstructor"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/UnnecessaryConstructor]]></configKey> </rule> <rule key="NullAssignment"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/NullAssignment]]></configKey> </rule> <rule key="OnlyOneReturn"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/OnlyOneReturn]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnusedModifier"> <priority>INFO</priority> <configKey><![CDATA[rulesets/java/unusedcode.xml/UnusedModifier]]></configKey> </rule> <rule key="AssignmentInOperand"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/AssignmentInOperand]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AtLeastOneConstructor"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/AtLeastOneConstructor]]></configKey> </rule> <rule key="DontImportSun"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/DontImportSun]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SuspiciousOctalEscape"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/SuspiciousOctalEscape]]></configKey> </rule> <rule key="CallSuperInConstructor"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/CallSuperInConstructor]]></configKey> </rule> <rule key="SingularField"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/SingularField]]></configKey> </rule> <rule key="DefaultPackage"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/DefaultPackage]]></configKey> <status>DEPRECATED</status> </rule> <rule key="BooleanInversion"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/BooleanInversion]]></configKey> </rule> <rule key="DataflowAnomalyAnalysis"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/DataflowAnomalyAnalysis]]></configKey> <param key="maxViolations" type="INTEGER"> <defaultValue>100</defaultValue> </param> <param key="maxPaths" type="INTEGER"> <defaultValue>1000</defaultValue> </param> </rule> <rule key="CouplingBetweenObjects"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/coupling.xml/CouplingBetweenObjects]]></configKey> <param key="threshold" type="INTEGER"> <defaultValue>20</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="ExcessiveImports"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/coupling.xml/ExcessiveImports]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>30</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="LooseCoupling"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/coupling.xml/LooseCoupling]]></configKey> <status>DEPRECATED</status> </rule> <rule key="MethodArgumentCouldBeFinal"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/MethodArgumentCouldBeFinal]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidInstantiatingObjectsInLoops"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/AvoidInstantiatingObjectsInLoops]]></configKey> </rule> <rule key="UseArrayListInsteadOfVector"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/UseArrayListInsteadOfVector]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SimplifyStartsWith"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/SimplifyStartsWith]]></configKey> </rule> <rule key="UseStringBufferForStringAppends"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/UseStringBufferForStringAppends]]></configKey> </rule> <rule key="UseArraysAsList"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/UseArraysAsList]]></configKey> </rule> <rule key="AvoidArrayLoops"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/AvoidArrayLoops]]></configKey> </rule> <rule key="UnnecessaryWrapperObjectCreation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/UnnecessaryWrapperObjectCreation]]></configKey> </rule> <rule key="UseProperClassLoader"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/j2ee.xml/UseProperClassLoader]]></configKey> </rule> <rule key="EmptyCatchBlock"> <priority>CRITICAL</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/empty.xml/EmptyCatchBlock]]></configKey> <param key="allowCommentedBlocks" type="BOOLEAN"> <defaultValue>false</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="EmptyIfStmt"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/empty.xml/EmptyIfStmt]]></configKey> <status>DEPRECATED</status> </rule> <rule key="EmptyWhileStmt"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/empty.xml/EmptyWhileStmt]]></configKey> <status>DEPRECATED</status> </rule> <rule key="EmptyTryBlock"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/empty.xml/EmptyTryBlock]]></configKey> <status>DEPRECATED</status> </rule> <rule key="EmptyFinallyBlock"> <priority>CRITICAL</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/empty.xml/EmptyFinallyBlock]]></configKey> <status>DEPRECATED</status> </rule> <rule key="EmptySwitchStatements"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/empty.xml/EmptySwitchStatements]]></configKey> <status>DEPRECATED</status> </rule> <rule key="JumbledIncrementer"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/JumbledIncrementer]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ForLoopShouldBeWhileLoop"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/ForLoopShouldBeWhileLoop]]></configKey> </rule> <rule key="UnnecessaryConversionTemporary"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/unnecessary.xml/UnnecessaryConversionTemporary]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ReturnFromFinallyBlock"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/ReturnFromFinallyBlock]]></configKey> <status>DEPRECATED</status> </rule> <rule key="EmptySynchronizedBlock"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/empty.xml/EmptySynchronizedBlock]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnnecessaryReturn"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/unnecessary.xml/UnnecessaryReturn]]></configKey> </rule> <rule key="EmptyStaticInitializer"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/empty.xml/EmptyStaticInitializer]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnconditionalIfStatement"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/basic.xml/UnconditionalIfStatement]]></configKey> <status>DEPRECATED</status> </rule> <rule key="EmptyStatementNotInLoop"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/empty.xml/EmptyStatementNotInLoop]]></configKey> <status>DEPRECATED</status> </rule> <rule key="BooleanInstantiation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/BooleanInstantiation]]></configKey> </rule> <rule key="UnnecessaryFinalModifier"> <priority>INFO</priority> <configKey><![CDATA[rulesets/java/unnecessary.xml/UnnecessaryFinalModifier]]></configKey> </rule> <rule key="CollapsibleIfStatements"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/CollapsibleIfStatements]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UselessOverridingMethod"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/unnecessary.xml/UselessOverridingMethod]]></configKey> <param key="ignoreAnnotations" type="BOOLEAN"> <defaultValue>false</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="ClassCastExceptionWithToArray"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/ClassCastExceptionWithToArray]]></configKey> </rule> <rule key="AvoidDecimalLiteralsInBigDecimalConstructor"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/AvoidDecimalLiteralsInBigDecimalConstructor]]></configKey> </rule> <rule key="UselessOperationOnImmutable"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/unnecessary.xml/UselessOperationOnImmutable]]></configKey> </rule> <rule key="MisplacedNullCheck"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/basic.xml/MisplacedNullCheck]]></configKey> </rule> <rule key="UnusedNullCheckInEquals"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/unnecessary.xml/UnusedNullCheckInEquals]]></configKey> </rule> <rule key="AvoidThreadGroup"> <priority>CRITICAL</priority> <tag>multithreading</tag> <configKey><![CDATA[rulesets/java/basic.xml/AvoidThreadGroup]]></configKey> </rule> <rule key="BrokenNullCheck"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/basic.xml/BrokenNullCheck]]></configKey> <status>DEPRECATED</status> </rule> <rule key="BigIntegerInstantiation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/BigIntegerInstantiation]]></configKey> </rule> <rule key="AvoidUsingOctalValues"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/AvoidUsingOctalValues]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UseUtilityClass"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/UseUtilityClass]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidDeeplyNestedIfStmts"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AvoidDeeplyNestedIfStmts]]></configKey> <param key="problemDepth" type="INTEGER"> <defaultValue>3</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="AvoidReassigningParameters"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AvoidReassigningParameters]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SwitchDensity"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/SwitchDensity]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>10</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="ConstructorCallsOverridableMethod"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/ConstructorCallsOverridableMethod]]></configKey> </rule> <rule key="AccessorClassGeneration"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AccessorClassGeneration]]></configKey> </rule> <rule key="FinalFieldCouldBeStatic"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/FinalFieldCouldBeStatic]]></configKey> <status>DEPRECATED</status> </rule> <rule key="CloseResource"> <priority>CRITICAL</priority> <tag>bug</tag> <configKey><![CDATA[rulesets/java/design.xml/CloseResource]]></configKey> <param key="types" type="STRING"> <defaultValue>Connection,Statement,ResultSet</defaultValue> </param> <param key="closeTargets" type="STRING"> <defaultValue>close</defaultValue> </param> </rule> <rule key="NonStaticInitializer"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/NonStaticInitializer]]></configKey> <status>DEPRECATED</status> </rule> <rule key="NonCaseLabelInSwitchStatement"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/NonCaseLabelInSwitchStatement]]></configKey> <status>DEPRECATED</status> </rule> <rule key="OptimizableToArrayCall"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/OptimizableToArrayCall]]></configKey> </rule> <rule key="BadComparison"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/BadComparison]]></configKey> </rule> <rule key="EqualsNull"> <priority>CRITICAL</priority> <tag>bug</tag> <configKey><![CDATA[rulesets/java/design.xml/EqualsNull]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ConfusingTernary"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/ConfusingTernary]]></configKey> </rule> <rule key="InstantiationToGetClass"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/InstantiationToGetClass]]></configKey> </rule> <rule key="IdempotentOperations"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/IdempotentOperations]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SimpleDateFormatNeedsLocale"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/SimpleDateFormatNeedsLocale]]></configKey> </rule> <rule key="ImmutableField"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/ImmutableField]]></configKey> </rule> <rule key="UseLocaleWithCaseConversions"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/UseLocaleWithCaseConversions]]></configKey> </rule> <rule key="AvoidProtectedFieldInFinalClass"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AvoidProtectedFieldInFinalClass]]></configKey> </rule> <rule key="AssignmentToNonFinalStatic"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AssignmentToNonFinalStatic]]></configKey> </rule> <rule key="MissingStaticMethodInNonInstantiatableClass"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/MissingStaticMethodInNonInstantiatableClass]]></configKey> </rule> <rule key="AvoidSynchronizedAtMethodLevel"> <priority>MAJOR</priority> <tag>multithreading</tag> <configKey><![CDATA[rulesets/java/design.xml/AvoidSynchronizedAtMethodLevel]]></configKey> </rule> <rule key="MissingBreakInSwitch"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/design.xml/MissingBreakInSwitch]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UseNotifyAllInsteadOfNotify"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/UseNotifyAllInsteadOfNotify]]></configKey> </rule> <rule key="AvoidInstanceofChecksInCatchClause"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AvoidInstanceofChecksInCatchClause]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AbstractClassWithoutAbstractMethod"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AbstractClassWithoutAbstractMethod]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SimplifyConditional"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/SimplifyConditional]]></configKey> </rule> <rule key="CompareObjectsWithEquals"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/CompareObjectsWithEquals]]></configKey> <status>DEPRECATED</status> </rule> <rule key="PositionLiteralsFirstInComparisons"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/PositionLiteralsFirstInComparisons]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnnecessaryLocalBeforeReturn"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/UnnecessaryLocalBeforeReturn]]></configKey> <status>DEPRECATED</status> </rule> <rule key="NonThreadSafeSingleton"> <priority>MAJOR</priority> <tag>multithreading</tag> <configKey><![CDATA[rulesets/java/design.xml/NonThreadSafeSingleton]]></configKey> <param key="checkNonStaticMethods" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> <param key="checkNonStaticFields" type="BOOLEAN"> <defaultValue>false</defaultValue> </param> </rule> <rule key="UncommentedEmptyMethod"> <priority>MAJOR</priority> <tag>comment</tag> <configKey><![CDATA[rulesets/java/design.xml/UncommentedEmptyMethod]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UncommentedEmptyConstructor"> <priority>MAJOR</priority> <tag>comment</tag> <configKey><![CDATA[rulesets/java/design.xml/UncommentedEmptyConstructor]]></configKey> <param key="ignoreExplicitConstructorInvocation" type="BOOLEAN"> <defaultValue>false</defaultValue> </param> </rule> <rule key="AvoidConstantsInterface"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AvoidConstantsInterface]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnsynchronizedStaticDateFormatter"> <priority>MAJOR</priority> <tag>multithreading</tag> <configKey><![CDATA[rulesets/java/design.xml/UnsynchronizedStaticDateFormatter]]></configKey> </rule> <rule key="PreserveStackTrace"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/design.xml/PreserveStackTrace]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UseCollectionIsEmpty"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/UseCollectionIsEmpty]]></configKey> <status>DEPRECATED</status> </rule> <rule key="MethodReturnsInternalArray"> <priority>CRITICAL</priority> <tag>security</tag> <configKey><![CDATA[rulesets/java/sunsecure.xml/MethodReturnsInternalArray]]></configKey> </rule> <rule key="ArrayIsStoredDirectly"> <priority>CRITICAL</priority> <tag>security</tag> <configKey><![CDATA[rulesets/java/sunsecure.xml/ArrayIsStoredDirectly]]></configKey> </rule> <rule key="AvoidCatchingThrowable"> <priority>CRITICAL</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/strictexception.xml/AvoidCatchingThrowable]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SignatureDeclareThrowsException"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/strictexception.xml/SignatureDeclareThrowsException]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ExceptionAsFlowControl"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strictexception.xml/ExceptionAsFlowControl]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidCatchingNPE"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/strictexception.xml/AvoidCatchingNPE]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidThrowingRawExceptionTypes"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/strictexception.xml/AvoidThrowingRawExceptionTypes]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidThrowingNullPointerException"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/strictexception.xml/AvoidThrowingNullPointerException]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidRethrowingException"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/strictexception.xml/AvoidRethrowingException]]></configKey> <status>DEPRECATED</status> </rule> <rule key="BeanMembersShouldSerialize"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/javabeans.xml/BeanMembersShouldSerialize]]></configKey> <param key="prefix" type="STRING"> <defaultValue></defaultValue> </param> </rule> <rule key="MissingSerialVersionUID"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/javabeans.xml/MissingSerialVersionUID]]></configKey> </rule> <rule key="CloneMethodMustImplementCloneable"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/clone.xml/CloneMethodMustImplementCloneable]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidDuplicateLiterals"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/AvoidDuplicateLiterals]]></configKey> <param key="maxDuplicateLiterals" type="INTEGER"> <defaultValue>4</defaultValue> </param> <param key="skipAnnotations" type="BOOLEAN"> <defaultValue>false</defaultValue> </param> <param key="exceptionList" type="STRING"> <defaultValue></defaultValue> </param> <param key="separator" type="STRING"> <defaultValue>,</defaultValue> </param> <param key="exceptionfile" type="STRING"> <defaultValue></defaultValue> </param> <param key="minimumLength" type="INTEGER"> <defaultValue>3</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="StringInstantiation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/StringInstantiation]]></configKey> </rule> <rule key="StringToString"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/StringToString]]></configKey> </rule> <rule key="InefficientStringBuffering"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/InefficientStringBuffering]]></configKey> </rule> <rule key="UnnecessaryCaseChange"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/UnnecessaryCaseChange]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UseStringBufferLength"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/UseStringBufferLength]]></configKey> </rule> <rule key="AppendCharacterWithChar"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/AppendCharacterWithChar]]></configKey> </rule> <rule key="ConsecutiveLiteralAppends"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/ConsecutiveLiteralAppends]]></configKey> <param key="threshold" type="INTEGER"> <defaultValue>1</defaultValue> </param> </rule> <rule key="UseIndexOfChar"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/UseIndexOfChar]]></configKey> </rule> <rule key="InefficientEmptyStringCheck"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/InefficientEmptyStringCheck]]></configKey> </rule> <rule key="InsufficientStringBufferDeclaration"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/InsufficientStringBufferDeclaration]]></configKey> </rule> <rule key="UselessStringValueOf"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/UselessStringValueOf]]></configKey> <status>DEPRECATED</status> </rule> <rule key="StringBufferInstantiationWithChar"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/StringBufferInstantiationWithChar]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ExcessiveMethodLength"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/ExcessiveMethodLength]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>100</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="ExcessiveParameterList"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/ExcessiveParameterList]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>10</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="ExcessiveClassLength"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/ExcessiveClassLength]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>1000</defaultValue> </param> </rule> <rule key="ExcessivePublicCount"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/ExcessivePublicCount]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>45</defaultValue> </param> </rule> <rule key="TooManyFields"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/TooManyFields]]></configKey> <param key="maxfields" type="INTEGER"> <defaultValue>15</defaultValue> </param> </rule> <rule key="NcssMethodCount"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/NcssMethodCount]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>100</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="NcssTypeCount"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/NcssTypeCount]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>1500</defaultValue> </param> </rule> <rule key="NcssConstructorCount"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/NcssConstructorCount]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>100</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="DuplicateImports"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/imports.xml/DuplicateImports]]></configKey> <status>DEPRECATED</status> </rule> <rule key="DontImportJavaLang"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/imports.xml/DontImportJavaLang]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ImportFromSamePackage"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/imports.xml/ImportFromSamePackage]]></configKey> <status>DEPRECATED</status> </rule> <rule key="CloneThrowsCloneNotSupportedException"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/clone.xml/CloneThrowsCloneNotSupportedException]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UseCorrectExceptionLogging"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/logging-jakarta-commons.xml/UseCorrectExceptionLogging]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ProperLogger"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/logging-jakarta-commons.xml/ProperLogger]]></configKey> <param key="staticLoggerName" type="STRING"> <defaultValue>LOG</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="ShortVariable"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/ShortVariable]]></configKey> </rule> <rule key="LongVariable"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/LongVariable]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>17</defaultValue> </param> </rule> <rule key="ShortMethodName"> <priority>MAJOR</priority> <tag>convention</tag> <configKey><![CDATA[rulesets/java/naming.xml/ShortMethodName]]></configKey> </rule> <rule key="VariableNamingConventions"> <priority>MAJOR</priority> <tag>naming</tag> <configKey><![CDATA[rulesets/java/naming.xml/VariableNamingConventions]]></configKey> <param key="staticPrefix" type="STRING"> <defaultValue></defaultValue> </param> <param key="staticSuffix" type="STRING"> <defaultValue></defaultValue> </param> <param key="memberPrefix" type="STRING"> <defaultValue></defaultValue> </param> <param key="memberSuffix" type="STRING"> <defaultValue></defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="MethodNamingConventions"> <priority>MAJOR</priority> <tag>naming</tag> <configKey>rulesets/java/naming.xml/MethodNamingConventions</configKey> <status>DEPRECATED</status> </rule> <rule key="ClassNamingConventions"> <priority>MAJOR</priority> <tag>naming</tag> <configKey><![CDATA[rulesets/java/naming.xml/ClassNamingConventions]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidDollarSigns"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/AvoidDollarSigns]]></configKey> <status>DEPRECATED</status> </rule> <rule key="MethodWithSameNameAsEnclosingClass"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/MethodWithSameNameAsEnclosingClass]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SuspiciousHashcodeMethodName"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/SuspiciousHashcodeMethodName]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SuspiciousConstantFieldName"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/SuspiciousConstantFieldName]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SuspiciousEqualsMethodName"> <priority>CRITICAL</priority> <configKey><![CDATA[rulesets/java/naming.xml/SuspiciousEqualsMethodName]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidFieldNameMatchingTypeName"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/AvoidFieldNameMatchingTypeName]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidFieldNameMatchingMethodName"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/AvoidFieldNameMatchingMethodName]]></configKey> <status>DEPRECATED</status> </rule> <rule key="MisleadingVariableName"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/MisleadingVariableName]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ReplaceVectorWithList"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/ReplaceVectorWithList]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ReplaceHashtableWithMap"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/ReplaceHashtableWithMap]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ReplaceEnumerationWithIterator"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/ReplaceEnumerationWithIterator]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidEnumAsIdentifier"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/AvoidEnumAsIdentifier]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidAssertAsIdentifier"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/AvoidAssertAsIdentifier]]></configKey> </rule> <rule key="IntegerInstantiation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/IntegerInstantiation]]></configKey> </rule> <rule key="MoreThanOneLogger"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/logging-java.xml/MoreThanOneLogger]]></configKey> <status>DEPRECATED</status> </rule> <rule key="LoggerIsNotStaticFinal"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/logging-java.xml/LoggerIsNotStaticFinal]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SystemPrintln"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/logging-java.xml/SystemPrintln]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidPrintStackTrace"> <priority>MAJOR</priority> <tag>error-handling</tag> <configKey><![CDATA[rulesets/java/logging-java.xml/AvoidPrintStackTrace]]></configKey> <status>DEPRECATED</status> </rule> <rule key="IfStmtsMustUseBraces"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/braces.xml/IfStmtsMustUseBraces]]></configKey> <status>DEPRECATED</status> </rule> <rule key="WhileLoopsMustUseBraces"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/braces.xml/WhileLoopsMustUseBraces]]></configKey> <status>DEPRECATED</status> </rule> <rule key="IfElseStmtsMustUseBraces"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/braces.xml/IfElseStmtsMustUseBraces]]></configKey> <status>DEPRECATED</status> </rule> <rule key="ForLoopsMustUseBraces"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/braces.xml/ForLoopsMustUseBraces]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AvoidUsingHardCodedIP"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/AvoidUsingHardCodedIP]]></configKey> <param key="pattern" type="REGULAR_EXPRESSION"> <defaultValue><![CDATA[^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$]]></defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="CheckResultSet"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/CheckResultSet]]></configKey> </rule> <rule key="AvoidUsingShortType"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/AvoidUsingShortType]]></configKey> </rule> <rule key="AvoidUsingVolatile"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/AvoidUsingVolatile]]></configKey> </rule> <rule key="AvoidUsingNativeCode"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/AvoidUsingNativeCode]]></configKey> </rule> <rule key="AvoidAccessibilityAlteration"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/AvoidAccessibilityAlteration]]></configKey> </rule> <rule key="EmptyMethodInAbstractClassShouldBeAbstract"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/EmptyMethodInAbstractClassShouldBeAbstract]]></configKey> </rule> <rule key="TooManyStaticImports"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/imports.xml/TooManyStaticImports]]></configKey> <param key="maximumStaticImports" type="INTEGER"> <defaultValue>4</defaultValue> </param> </rule> <rule key="DoNotCallSystemExit"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/j2ee.xml/DoNotCallSystemExit]]></configKey> <status>DEPRECATED</status> </rule> <rule key="StaticEJBFieldShouldBeFinal"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/j2ee.xml/StaticEJBFieldShouldBeFinal]]></configKey> </rule> <rule key="DoNotUseThreads"> <priority>MAJOR</priority> <tag>multithreading</tag> <configKey><![CDATA[rulesets/java/j2ee.xml/DoNotUseThreads]]></configKey> </rule> <rule key="MDBAndSessionBeanNamingConvention"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/j2ee.xml/MDBAndSessionBeanNamingConvention]]></configKey> </rule> <rule key="RemoteSessionInterfaceNamingConvention"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/j2ee.xml/RemoteSessionInterfaceNamingConvention]]></configKey> </rule> <rule key="LocalInterfaceSessionNamingConvention"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/j2ee.xml/LocalInterfaceSessionNamingConvention]]></configKey> </rule> <rule key="LocalHomeNamingConvention"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/j2ee.xml/LocalHomeNamingConvention]]></configKey> </rule> <rule key="RemoteInterfaceNamingConvention"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/j2ee.xml/RemoteInterfaceNamingConvention]]></configKey> </rule> <rule key="UseEqualsToCompareStrings"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/UseEqualsToCompareStrings]]></configKey> <status>DEPRECATED</status> </rule> <rule key="DoNotExtendJavaLangError"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strictexception.xml/DoNotExtendJavaLangError]]></configKey> <status>DEPRECATED</status> </rule> <rule key="AddEmptyString"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/AddEmptyString]]></configKey> </rule> <rule key="BooleanGetMethodName"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/BooleanGetMethodName]]></configKey> <param key="checkParameterizedMethods" type="BOOLEAN"> <defaultValue>false</defaultValue> </param> </rule> <rule key="AvoidBranchingStatementAsLastInLoop"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/AvoidBranchingStatementAsLastInLoop]]></configKey> </rule> <rule key="CheckSkipResult"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/CheckSkipResult]]></configKey> </rule> <rule key="DontUseFloatTypeForLoopIndices"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/DontUseFloatTypeForLoopIndices]]></configKey> </rule> <rule key="ExtendsObject"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/basic.xml/ExtendsObject]]></configKey> </rule> <rule key="CommentContent"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/comments.xml/CommentContent]]></configKey> </rule> <rule key="CommentRequired"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/comments.xml/CommentRequired]]></configKey> </rule> <rule key="CommentSize"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/comments.xml/CommentSize]]></configKey> </rule> <rule key="AvoidPrefixingMethodParameters"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/AvoidPrefixingMethodParameters]]></configKey> </rule> <rule key="OneDeclarationPerLine"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/OneDeclarationPerLine]]></configKey> </rule> <rule key="UseObjectForClearerAPI"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/controversial.xml/UseObjectForClearerAPI]]></configKey> </rule> <rule key="LawOfDemeter"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/coupling.xml/LawOfDemeter]]></configKey> </rule> <rule key="LoosePackageCoupling"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/coupling.xml/LoosePackageCoupling]]></configKey> </rule> <rule key="AvoidProtectedMethodInFinalClassNotExtending"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/AvoidProtectedMethodInFinalClassNotExtending]]></configKey> </rule> <rule key="FieldDeclarationsShouldBeAtStartOfClass"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/FieldDeclarationsShouldBeAtStartOfClass]]></configKey> <param key="ignoreEnumDeclarations" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> <param key="ignoreAnonymousClassDeclarations" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="GodClass"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/GodClass]]></configKey> </rule> <rule key="LogicInversion"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/design.xml/LogicInversion]]></configKey> </rule> <rule key="PositionLiteralsFirstInCaseInsensitiveComparisons"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/PositionLiteralsFirstInCaseInsensitiveComparisons]]></configKey> </rule> <rule key="UseVarargs"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/design.xml/UseVarargs]]></configKey> </rule> <rule key="EmptyStatementBlock"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/empty.xml/EmptyStatementBlock]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UnnecessaryFullyQualifiedName"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/imports.xml/UnnecessaryFullyQualifiedName]]></configKey> </rule> <rule key="GuardLogStatement"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/logging-jakarta-commons.xml/GuardLogStatement]]></configKey> </rule> <rule key="GuardLogStatementJavaUtil"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/logging-java.xml/GuardLogStatementJavaUtil]]></configKey> </rule> <rule key="ShortClassName"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/naming.xml/ShortClassName]]></configKey> <param key="minimum" type="INTEGER"> <defaultValue>5</defaultValue> </param> </rule> <rule key="PrematureDeclaration"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/PrematureDeclaration]]></configKey> </rule> <rule key="RedundantFieldInitializer"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/optimizations.xml/RedundantFieldInitializer]]></configKey> </rule> <rule key="ConsecutiveAppendsShouldReuse"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/strings.xml/ConsecutiveAppendsShouldReuse]]></configKey> </rule> <rule key="CloneMethodMustImplementCloneableWithTypeResolution"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/typeresolution.xml/CloneMethodMustImplementCloneable]]></configKey> <status>DEPRECATED</status> </rule> <rule key="LooseCouplingWithTypeResolution"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/typeresolution.xml/LooseCoupling]]></configKey> <status>DEPRECATED</status> </rule> <rule key="SignatureDeclareThrowsExceptionWithTypeResolution"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/typeresolution.xml/SignatureDeclareThrowsException]]></configKey> <param key="IgnoreJUnitCompletely" type="BOOLEAN"> <defaultValue>false</defaultValue> </param> <status>DEPRECATED</status> </rule> <rule key="UnusedImportsWithTypeResolution"> <priority>INFO</priority> <configKey><![CDATA[rulesets/java/typeresolution.xml/UnusedImports]]></configKey> <status>DEPRECATED</status> </rule> <rule key="UselessParentheses"> <priority>INFO</priority> <configKey><![CDATA[rulesets/java/unnecessary.xml/UselessParentheses]]></configKey> <status>DEPRECATED</status> </rule> <rule key="StdCyclomaticComplexity"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/StdCyclomaticComplexity]]></configKey> <param key="reportLevel" type="INTEGER"> <defaultValue>10</defaultValue> </param> <param key="showClassesComplexity" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> <param key="showMethodsComplexity" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> </rule> <rule key="ModifiedCyclomaticComplexity"> <priority>MAJOR</priority> <tag>size</tag> <configKey><![CDATA[rulesets/java/codesize.xml/ModifiedCyclomaticComplexity]]></configKey> <param key="reportLevel" type="INTEGER"> <defaultValue>10</defaultValue> </param> <param key="showClassesComplexity" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> <param key="showMethodsComplexity" type="BOOLEAN"> <defaultValue>true</defaultValue> </param> </rule> <rule key="XPathRule"> <priority>MAJOR</priority> <configKey><![CDATA[net.sourceforge.pmd.lang.rule.XPathRule]]></configKey> <cardinality>MULTIPLE</cardinality> <param key="xpath" type="TEXT"> <defaultValue></defaultValue> </param> <param key="message" type="STRING"> <defaultValue></defaultValue> </param> <status>DEPRECATED</status> </rule> </rules>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy