Variable Naming Convention 
View Source
All variable names should conform to the pattern defined by the regex option pattern, unless they
match the forbidden_regex option pattern, in which case they are disallowed.
Avoid
This is a convention aimed at ensuring consistency, rather than a coding issue.
My____var = 123Prefer
MyVar = 123Rationale
By defining a regular expression for naming variables you increase consistency across your codebase.
Options
regex :: string()- default:
"^_?([A-Z][0-9a-zA-Z]*)$"
- default:
forbidden_regex :: string() | undefined- default:
undefined
- default:
Example configuration
{elvis_style, variable_naming_convention, #{
regex => "^_?([A-Z][0-9a-zA-Z]*)$",
forbidden_regex => undefined
}}