Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.support.config/codeStyle/osee_pmd_rule_set.xml')
-rw-r--r--plugins/org.eclipse.osee.support.config/codeStyle/osee_pmd_rule_set.xml524
1 files changed, 262 insertions, 262 deletions
diff --git a/plugins/org.eclipse.osee.support.config/codeStyle/osee_pmd_rule_set.xml b/plugins/org.eclipse.osee.support.config/codeStyle/osee_pmd_rule_set.xml
index eb5a4afba2..8cf263c2d7 100644
--- a/plugins/org.eclipse.osee.support.config/codeStyle/osee_pmd_rule_set.xml
+++ b/plugins/org.eclipse.osee.support.config/codeStyle/osee_pmd_rule_set.xml
@@ -1,263 +1,263 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- generated by Sonar -->
-<ruleset>
- <description>Osee Sonar Way with Findbugs</description>
- <rule ref="rulesets/coupling.xml/LooseCoupling">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strictexception.xml/AvoidCatchingNPE">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/finalizers.xml/FinalizeOverloaded">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/finalizers.xml/AvoidCallingFinalize">
- <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/controversial.xml/UnusedModifier">
- <priority>5</priority>
- </rule>
- <rule ref="rulesets/optimizations.xml/UseArraysAsList">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/basic.xml/EmptyWhileStmt">
- <priority>2</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/BrokenNullCheck">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/basic.xml/BigIntegerInstantiation">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/design.xml/ConstructorCallsOverridableMethod">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/design.xml/CloseResource">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/design.xml/InstantiationToGetClass">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/design.xml/PreserveStackTrace">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/sunsecure.xml/ArrayIsStoredDirectly">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strictexception.xml/AvoidThrowingRawExceptionTypes">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strictexception.xml/AvoidThrowingNullPointerException">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strings.xml/StringBufferInstantiationWithChar">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/codesize.xml/NcssMethodCount">
- <priority>3</priority>
- <properties>
- <property name="minimum" value="50"/>
- </properties>
- </rule>
- <rule ref="rulesets/codesize.xml/NcssTypeCount">
- <priority>3</priority>
- <properties>
- <property name="minimum" value="800"/>
- </properties>
- </rule>
- <rule ref="rulesets/naming.xml/SuspiciousEqualsMethodName">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/design.xml/SingularField">
- <priority>4</priority>
- </rule>
- <rule ref="rulesets/finalizers.xml/EmptyFinalizer">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/finalizers.xml/FinalizeDoesNotCallSuperFinalize">
- <priority>3</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/controversial.xml/DontImportSun">
- <priority>4</priority>
- </rule>
- <rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/optimizations.xml/AvoidArrayLoops">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/basic.xml/EmptyIfStmt">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/basic.xml/EmptyTryBlock">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/basic.xml/EmptyFinallyBlock">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/basic.xml/EmptySwitchStatements">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/basic.xml/EmptySynchronizedBlock">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/basic.xml/EmptyStaticInitializer">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/basic.xml/UnconditionalIfStatement">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/basic.xml/BooleanInstantiation">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/basic.xml/CollapsibleIfStatements">
- <priority>4</priority>
- </rule>
- <rule ref="rulesets/basic.xml/UselessOverridingMethod">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/basic.xml/UnusedNullCheckInEquals">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/design.xml/FinalFieldCouldBeStatic">
- <priority>4</priority>
- </rule>
- <rule ref="rulesets/design.xml/EqualsNull">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/design.xml/IdempotentOperations">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/design.xml/MissingStaticMethodInNonInstantiatableClass">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/design.xml/AvoidInstanceofChecksInCatchClause">
- <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/strictexception.xml/AvoidCatchingThrowable">
- <priority>2</priority>
- </rule>
- <rule ref="rulesets/strictexception.xml/ExceptionAsFlowControl">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strictexception.xml/AvoidRethrowingException">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strings.xml/AvoidDuplicateLiterals">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strings.xml/StringInstantiation">
- <priority>3</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/UseIndexOfChar">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strings.xml/UselessStringValueOf">
- <priority>4</priority>
- </rule>
- <rule ref="rulesets/imports.xml/DontImportJavaLang">
- <priority>4</priority>
- </rule>
- <rule ref="rulesets/clone.xml/CloneThrowsCloneNotSupportedException">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/logging-jakarta-commons.xml/UseCorrectExceptionLogging">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/strings.xml/UseStringBufferLength">
- <priority>4</priority>
- </rule>
- <rule ref="rulesets/naming.xml/ClassNamingConventions">
- <priority>3</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/migrating.xml/ReplaceVectorWithList">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/migrating.xml/ReplaceHashtableWithMap">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/migrating.xml/ReplaceEnumerationWithIterator">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/migrating.xml/AvoidEnumAsIdentifier">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/migrating.xml/AvoidAssertAsIdentifier">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/migrating.xml/IntegerInstantiation">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/logging-java.xml/SystemPrintln">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/logging-java.xml/AvoidPrintStackTrace">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/braces.xml/IfStmtsMustUseBraces">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/braces.xml/WhileLoopsMustUseBraces">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/braces.xml/IfElseStmtsMustUseBraces">
- <priority>3</priority>
- </rule>
- <rule ref="rulesets/braces.xml/ForLoopsMustUseBraces">
- <priority>3</priority>
- </rule>
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- generated by Sonar -->
+<ruleset>
+ <description>Osee Sonar Way with Findbugs</description>
+ <rule ref="rulesets/coupling.xml/LooseCoupling">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strictexception.xml/AvoidCatchingNPE">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/finalizers.xml/FinalizeOverloaded">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/finalizers.xml/AvoidCallingFinalize">
+ <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/controversial.xml/UnusedModifier">
+ <priority>5</priority>
+ </rule>
+ <rule ref="rulesets/optimizations.xml/UseArraysAsList">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/EmptyWhileStmt">
+ <priority>2</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/BrokenNullCheck">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/BigIntegerInstantiation">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/ConstructorCallsOverridableMethod">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/CloseResource">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/InstantiationToGetClass">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/PreserveStackTrace">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/sunsecure.xml/ArrayIsStoredDirectly">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strictexception.xml/AvoidThrowingRawExceptionTypes">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strictexception.xml/AvoidThrowingNullPointerException">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strings.xml/StringBufferInstantiationWithChar">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/codesize.xml/NcssMethodCount">
+ <priority>3</priority>
+ <properties>
+ <property name="minimum" value="50"/>
+ </properties>
+ </rule>
+ <rule ref="rulesets/codesize.xml/NcssTypeCount">
+ <priority>3</priority>
+ <properties>
+ <property name="minimum" value="800"/>
+ </properties>
+ </rule>
+ <rule ref="rulesets/naming.xml/SuspiciousEqualsMethodName">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/SingularField">
+ <priority>4</priority>
+ </rule>
+ <rule ref="rulesets/finalizers.xml/EmptyFinalizer">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/finalizers.xml/FinalizeDoesNotCallSuperFinalize">
+ <priority>3</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/controversial.xml/DontImportSun">
+ <priority>4</priority>
+ </rule>
+ <rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/optimizations.xml/AvoidArrayLoops">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/EmptyIfStmt">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/EmptyTryBlock">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/EmptyFinallyBlock">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/EmptySwitchStatements">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/EmptySynchronizedBlock">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/EmptyStaticInitializer">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/UnconditionalIfStatement">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/BooleanInstantiation">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/CollapsibleIfStatements">
+ <priority>4</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/UselessOverridingMethod">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/basic.xml/UnusedNullCheckInEquals">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/FinalFieldCouldBeStatic">
+ <priority>4</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/EqualsNull">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/IdempotentOperations">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/MissingStaticMethodInNonInstantiatableClass">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/design.xml/AvoidInstanceofChecksInCatchClause">
+ <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/strictexception.xml/AvoidCatchingThrowable">
+ <priority>2</priority>
+ </rule>
+ <rule ref="rulesets/strictexception.xml/ExceptionAsFlowControl">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strictexception.xml/AvoidRethrowingException">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strings.xml/AvoidDuplicateLiterals">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strings.xml/StringInstantiation">
+ <priority>3</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/UseIndexOfChar">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strings.xml/UselessStringValueOf">
+ <priority>4</priority>
+ </rule>
+ <rule ref="rulesets/imports.xml/DontImportJavaLang">
+ <priority>4</priority>
+ </rule>
+ <rule ref="rulesets/clone.xml/CloneThrowsCloneNotSupportedException">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/logging-jakarta-commons.xml/UseCorrectExceptionLogging">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/strings.xml/UseStringBufferLength">
+ <priority>4</priority>
+ </rule>
+ <rule ref="rulesets/naming.xml/ClassNamingConventions">
+ <priority>3</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/migrating.xml/ReplaceVectorWithList">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/migrating.xml/ReplaceHashtableWithMap">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/migrating.xml/ReplaceEnumerationWithIterator">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/migrating.xml/AvoidEnumAsIdentifier">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/migrating.xml/AvoidAssertAsIdentifier">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/migrating.xml/IntegerInstantiation">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/logging-java.xml/SystemPrintln">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/logging-java.xml/AvoidPrintStackTrace">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/braces.xml/IfStmtsMustUseBraces">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/braces.xml/WhileLoopsMustUseBraces">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/braces.xml/IfElseStmtsMustUseBraces">
+ <priority>3</priority>
+ </rule>
+ <rule ref="rulesets/braces.xml/ForLoopsMustUseBraces">
+ <priority>3</priority>
+ </rule>
</ruleset> \ No newline at end of file

Back to the top