S101 — Class names should comply with a naming convention

Language
VB.NET
Type
Code smell
Severity
Minor
Tags
convention

Why is this an issue?

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:

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

Resources

Documentation

↑ Back to top