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

category.velocity.bestpractices.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>

<ruleset name="Best Practices"
         xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">

    <description>
Rules which enforce generally accepted best practices.
    </description>

    <rule name="AvoidReassigningParameters"
          language="velocity"
          since="5.1"
          message="Avoid reassigning macro parameters such as ''{0}''"
          class="net.sourceforge.pmd.lang.velocity.rule.bestpractices.AvoidReassigningParametersRule"
          externalInfoUrl="${pmd.website.baseurl}/pmd_rules_velocity_bestpractices.html#avoidreassigningparameters">
        <description>
Reassigning values to incoming parameters is not recommended.  Use temporary local variables instead.
        </description>
        <priority>2</priority>
    </rule>

    <rule name="UnusedMacroParameter"
          language="velocity"
          since="5.1"
          message="Avoid unused macro parameters such as ''{0}''"
          class="net.sourceforge.pmd.lang.velocity.rule.bestpractices.UnusedMacroParameterRule"
          externalInfoUrl="${pmd.website.baseurl}/pmd_rules_velocity_bestpractices.html#unusedmacroparameter">
        <description>
Avoid unused macro parameters. They should be deleted.
        </description>
        <priority>2</priority>
    </rule>

</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy