All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rulesets.unnecessary.xml Maven / Gradle / Ivy

There is a newer version: 3.5.0-groovy-4.0
Show newest version
<ruleset xmlns="http://codenarc.org/ruleset/1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://codenarc.org/ruleset/1.0 http://codenarc.org/ruleset-schema.xsd"
        xsi:noNamespaceSchemaLocation="http://codenarc.org/ruleset-schema.xsd">

    <description>
        Unnecessary rule set.
        These rules check for unnecessary code.
    </description>

    <rule class='org.codenarc.rule.unnecessary.AddEmptyStringRule'/>
    <rule class='org.codenarc.rule.unnecessary.ConsecutiveStringConcatenationRule'/>
    <rule class='org.codenarc.rule.unnecessary.ConsecutiveLiteralAppendsRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryBigDecimalInstantiationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryBigIntegerInstantiationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryBooleanExpressionRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryBooleanInstantiationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryCallForLastElementRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryCallToSubstringRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryCastRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryCatchBlockRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryCollectCallRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryCollectionCallRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryConstructorRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryDefInFieldDeclarationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryDefInMethodDeclarationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryDefInVariableDeclarationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryDotClassRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryDoubleInstantiationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryElseStatementRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryFinalOnPrivateMethodRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryFloatInstantiationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryGetterRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryGStringRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryIfStatementRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryInstanceOfCheckRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryInstantiationToGetClassRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryIntegerInstantiationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryLongInstantiationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryModOneRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryNullCheckBeforeInstanceOfRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryNullCheckRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryObjectReferencesRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryOverridingMethodRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryPackageReferenceRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryParenthesesForMethodCallWithClosureRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryPublicModifierRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryReturnKeywordRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessarySafeNavigationOperatorRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessarySelfAssignmentRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessarySemicolonRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessarySetterRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryStringInstantiationRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessarySubstringRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryTernaryExpressionRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryToStringRule'/>
    <rule class='org.codenarc.rule.unnecessary.UnnecessaryTransientModifierRule'/>
</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy