org.sonar.plugins.pmd.profile-sonar-way.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <ruleset xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xmlns="http://pmd.sf.net/ruleset/1.0.0" xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd" name="Sonar rules set" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <description>Sonar PMD rules generated configuration</description> <rule ref="rulesets/basic.xml/UnusedNullCheckInEquals"> <priority>1</priority> </rule> <rule ref="rulesets/strings.xml/StringInstantiation"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/ConstructorCallsOverridableMethod"> <priority>1</priority> </rule> <rule ref="rulesets/strictexception.xml/AvoidCatchingNPE"> <priority>1</priority> </rule> <rule ref="rulesets/strictexception.xml/AvoidRethrowingException"> <priority>1</priority> </rule> <rule ref="rulesets/migrating.xml/ReplaceEnumerationWithIterator"> <priority>3</priority> </rule> <rule ref="rulesets/optimizations.xml/AvoidArrayLoops"> <priority>1</priority> </rule> <rule ref="rulesets/unusedcode.xml/UnusedFormalParameter"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/EmptySwitchStatements"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/ClassCastExceptionWithToArray"> <priority>1</priority> </rule> <rule ref="rulesets/strictexception.xml/AvoidThrowingNullPointerException"> <priority>1</priority> </rule> <rule ref="rulesets/unusedcode.xml/UnusedPrivateField"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/CompareObjectsWithEquals"> <priority>3</priority> </rule> <rule ref="rulesets/strings.xml/UseIndexOfChar"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/BigIntegerInstantiation"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/FinalFieldCouldBeStatic"> <priority>1</priority> </rule> <rule ref="rulesets/braces.xml/IfStmtsMustUseBraces"> <priority>1</priority> </rule> <rule ref="rulesets/naming.xml/SuspiciousEqualsMethodName"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/InstantiationToGetClass"> <priority>1</priority> </rule> <rule ref="rulesets/naming.xml/SuspiciousHashcodeMethodName"> <priority>1</priority> </rule> <rule ref="rulesets/coupling.xml/LooseCoupling"> <priority>3</priority> </rule> <rule ref="rulesets/unusedcode.xml/UnusedLocalVariable"> <priority>1</priority> </rule> <rule ref="rulesets/strings.xml/UnnecessaryCaseChange"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/EmptySynchronizedBlock"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/SingularField"> <priority>3</priority> </rule> <rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/CloseResource"> <priority>1</priority> </rule> <rule ref="rulesets/strictexception.xml/AvoidCatchingThrowable"> <priority>3</priority> </rule> <rule ref="rulesets/basic.xml/EmptyWhileStmt"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/CollapsibleIfStatements"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/UselessOperationOnImmutable"> <priority>1</priority> </rule> <rule ref="rulesets/typeresolution.xml/CloneMethodMustImplementCloneable"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/UselessOverridingMethod"> <priority>1</priority> </rule> <rule ref="rulesets/controversial.xml/UnusedModifier"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/PreserveStackTrace"> <priority>1</priority> </rule> <rule ref="rulesets/optimizations.xml/UseArraysAsList"> <priority>1</priority> </rule> <rule ref="rulesets/strictexception.xml/AvoidThrowingRawExceptionTypes"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/EmptyIfStmt"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/EqualsNull"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/BrokenNullCheck"> <priority>1</priority> </rule> <rule ref="rulesets/logging-jakarta-commons.xml/UseCorrectExceptionLogging"> <priority>3</priority> </rule> <rule ref="rulesets/strings.xml/InefficientStringBuffering"> <priority>1</priority> </rule> <rule ref="rulesets/sunsecure.xml/ArrayIsStoredDirectly"> <priority>3</priority> </rule> <rule ref="rulesets/finalizers.xml/FinalizeOverloaded"> <priority>3</priority> </rule> <rule ref="rulesets/naming.xml/ClassNamingConventions"> <priority>1</priority> </rule> <rule ref="rulesets/controversial.xml/DontImportSun"> <priority>1</priority> </rule> <rule ref="rulesets/imports.xml/DontImportJavaLang"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/MissingStaticMethodInNonInstantiatableClass"> <priority>1</priority> </rule> <rule ref="rulesets/strings.xml/StringBufferInstantiationWithChar"> <priority>1</priority> </rule> <rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector"> <priority>1</priority> </rule> <rule ref="rulesets/braces.xml/WhileLoopsMustUseBraces"> <priority>1</priority> </rule> <rule ref="rulesets/strings.xml/StringToString"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/SimplifyConditional"> <priority>1</priority> </rule> <rule ref="rulesets/migrating.xml/ReplaceVectorWithList"> <priority>3</priority> </rule> <rule ref="rulesets/codesize.xml/NcssMethodCount"> <priority>1</priority> <properties> <property value="50" name="minimum"/> </properties> </rule> <rule ref="rulesets/logging-java.xml/AvoidPrintStackTrace"> <priority>3</priority> </rule> <rule ref="rulesets/naming.xml/MethodWithSameNameAsEnclosingClass"> <priority>1</priority> </rule> <rule ref="rulesets/naming.xml/SuspiciousConstantFieldName"> <priority>1</priority> </rule> <rule ref="rulesets/codesize.xml/NcssTypeCount"> <priority>1</priority> <properties> <property value="800" name="minimum"/> </properties> </rule> <rule ref="rulesets/design.xml/AvoidInstanceofChecksInCatchClause"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/EmptyFinallyBlock"> <priority>3</priority> </rule> <rule ref="rulesets/migrating.xml/IntegerInstantiation"> <priority>1</priority> </rule> <rule ref="rulesets/naming.xml/AvoidDollarSigns"> <priority>1</priority> </rule> <rule ref="rulesets/migrating.xml/AvoidAssertAsIdentifier"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/UnnecessaryLocalBeforeReturn"> <priority>1</priority> </rule> <rule ref="rulesets/finalizers.xml/AvoidCallingFinalize"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/BooleanInstantiation"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/UnconditionalIfStatement"> <priority>1</priority> </rule> <rule ref="rulesets/clone.xml/CloneThrowsCloneNotSupportedException"> <priority>1</priority> </rule> <rule ref="rulesets/migrating.xml/ReplaceHashtableWithMap"> <priority>3</priority> </rule> <rule ref="rulesets/basic.xml/AvoidDecimalLiteralsInBigDecimalConstructor"> <priority>1</priority> </rule> <rule ref="rulesets/braces.xml/ForLoopsMustUseBraces"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/EmptyTryBlock"> <priority>1</priority> </rule> <rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException"> <priority>3</priority> </rule> <rule ref="rulesets/finalizers.xml/EmptyFinalizer"> <priority>1</priority> </rule> <rule ref="rulesets/design.xml/IdempotentOperations"> <priority>1</priority> </rule> <rule ref="rulesets/strictexception.xml/ExceptionAsFlowControl"> <priority>1</priority> </rule> <rule ref="rulesets/basic.xml/EmptyStaticInitializer"> <priority>1</priority> </rule> <rule ref="rulesets/finalizers.xml/FinalizeDoesNotCallSuperFinalize"> <priority>1</priority> </rule> <rule ref="rulesets/strings.xml/UseStringBufferLength"> <priority>1</priority> </rule> <rule ref="rulesets/migrating.xml/AvoidEnumAsIdentifier"> <priority>1</priority> </rule> <rule ref="rulesets/braces.xml/IfElseStmtsMustUseBraces"> <priority>1</priority> </rule> <rule ref="rulesets/logging-java.xml/SystemPrintln"> <priority>3</priority> </rule> <rule ref="rulesets/strings.xml/UselessStringValueOf"> <priority>1</priority> </rule> <rule ref="rulesets/strings.xml/AvoidDuplicateLiterals"> <priority>3</priority> </rule> </ruleset>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy