naming-convention-variable
Enforce naming convention on variables
INFO
☑️ The predefined configuration "mslint:recommended"
enables this rule.
Rule details
This rule enforces a few naming conventions for variable declarations:
- Globale variables must be prefixed with
G_
- All variable names must start with an uppercase letter
Example of incorrect code for this rule:
maniascript
declare Integer VariableA;
declare Integer G_;
declare Integer g_variableC;
main() {
declare Integer variableD;
declare Integer _VariableE;
declare Integer variableF as variableG;
}
Example of correct code for this rule:
maniascript
declare Integer G_VariableA;
declare Integer G_VariableB;
declare Integer G_variableC;
main() {
declare Integer VariableD;
declare Integer VariableE;
declare Integer VariableF as VariableG;
}