Rules which enforce generally accepted best practices.
Table of Contents

AvoidReassigningParameters

Since: PMD 5.1

Priority: Medium High (2)

Reassigning values to incoming parameters is not recommended. Use temporary local variables instead.

This rule is defined by the following Java class: net.sourceforge.pmd.lang.velocity.rule.bestpractices.AvoidReassigningParametersRule

Use this rule by referencing it:

<rule ref="category/velocity/bestpractices.xml/AvoidReassigningParameters" />

UnusedMacroParameter

Since: PMD 5.1

Priority: Medium High (2)

Avoid unused macro parameters. They should be deleted.

This rule is defined by the following Java class: net.sourceforge.pmd.lang.velocity.rule.bestpractices.UnusedMacroParameterRule

Use this rule by referencing it:

<rule ref="category/velocity/bestpractices.xml/UnusedMacroParameter" />