org.sonar.plugins.pmd.rules-unit-tests.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="JUnitStaticSuite"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/JUnitStaticSuite]]></configKey> </rule> <rule key="JUnitSpelling"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/JUnitSpelling]]></configKey> </rule> <rule key="JUnitAssertionsShouldIncludeMessage"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/JUnitAssertionsShouldIncludeMessage]]></configKey> </rule> <rule key="JUnitTestsShouldIncludeAssert"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/JUnitTestsShouldIncludeAssert]]></configKey> </rule> <rule key="TestClassWithoutTestCases"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/TestClassWithoutTestCases]]></configKey> </rule> <rule key="UnnecessaryBooleanAssertion"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/UnnecessaryBooleanAssertion]]></configKey> </rule> <rule key="UseAssertEqualsInsteadOfAssertTrue"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/UseAssertEqualsInsteadOfAssertTrue]]></configKey> </rule> <rule key="UseAssertSameInsteadOfAssertTrue"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/UseAssertSameInsteadOfAssertTrue]]></configKey> </rule> <rule key="UseAssertNullInsteadOfAssertTrue"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/UseAssertNullInsteadOfAssertTrue]]></configKey> </rule> <rule key="SimplifyBooleanAssertion"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/SimplifyBooleanAssertion]]></configKey> </rule> <rule key="UseAssertTrueInsteadOfAssertEquals"> <priority>MINOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/UseAssertTrueInsteadOfAssertEquals]]></configKey> </rule> <rule key="JUnitTestContainsTooManyAsserts"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/junit.xml/JUnitTestContainsTooManyAsserts]]></configKey> <param key="maximumAsserts" type="INTEGER"> <defaultValue>1</defaultValue> </param> </rule> <rule key="JUnitUseExpected"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/JUnitUseExpected]]></configKey> </rule> <rule key="JUnit4SuitesShouldUseSuiteAnnotation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/JUnit4SuitesShouldUseSuiteAnnotation]]></configKey> </rule> <rule key="JUnit4TestShouldUseAfterAnnotation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/JUnit4TestShouldUseAfterAnnotation]]></configKey> </rule> <rule key="JUnit4TestShouldUseBeforeAnnotation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/JUnit4TestShouldUseBeforeAnnotation]]></configKey> </rule> <rule key="JUnit4TestShouldUseTestAnnotation"> <priority>MAJOR</priority> <configKey><![CDATA[rulesets/java/migrating.xml/JUnit4TestShouldUseTestAnnotation]]></configKey> </rule> </rules>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy