Inspection Details

UnderscoreInPublicClassModuleMember


Summary
Warns about public class members with an underscore in their names.
Reasoning
The public interface of any class module can be implemented by any other class module; if the public interface contains names with underscores, other classes cannot implement it - the code will not compile. Avoid underscores; prefer PascalCase names.
The following code example(s) would trigger this inspection:

'@Interface
Public Sub Do_Something() ' underscore in name makes the interface non-implementable.
End Sub

The following code example(s) would not trigger this inspection:

'@Interface
Public Sub DoSomething() ' PascalCase identifiers are never a problem.
End Sub


Back to List