Shared naming conventions allow teams to collaborate efficiently.
This rule raises an issue when a class name does not match a provided regular expression.
The default configuration is the one recommended by Microsoft:
- Pascal casing, starting with an upper case character, e.g.,
BackColor
- Short abbreviations of 2 letters can be capitalized, e.g.,
GetID
- Longer abbreviations need to be lowercased, e.g.,
GetHtml
For example, with the default regular expression ^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$
, the class:
Class foo ' Noncompliant
End Class
should be renamed to
Class Foo
End Class