Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all local variable and function parameter names match a provided regular expression.
With the default regular expression ^[a-z][a-zA-Z0-9]*$
:
public void doSomething(int my_param) { int LOCAL; ... }
public void doSomething(int myParam) { int local; ... }
Loop counters are ignored by this rule.
for (int i_1 = 0; i_1 < limit; i_1++) { // Compliant // ... }