This rule is defined by the following Java class: net.sourceforge.pmd.rules.UnusedLocalVariableRule
Example:
public class Foo { public void doSomething() { int i = 5; // Unused } }