Why is this an issue?
Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when a local variable or function parameter name does
not match the provided regular expression.
Noncompliant code example
With the default regular expression ^[a-z][a-zA-Z0-9]*$
:
void doSomething(int my_param) {
int LOCAL;
...
}
Compliant solution
void doSomething(int myParam) {
int local;
...
}
Exceptions
This rule ignores const
variables.