NAMING.NLV
Enforce name format of local variables
Description
This rule flags any local variable that has an unconventional name format.
Most programmers or groups of programmers develop a set of naming rules for local variables. Jtest will enforce the name format of the local variable using a regular expression.
Example
package NAMING;
public class NLV {
void method () {
int i = 0;
i++;
}
}
Repair
Change the name of the local variable to match the regular expression. Use complete, descriptive English words.
Reference
http://www.AmbySoft.com/javaCodingStandards.pdf
|