Inspection Details

ObsoleteCommentSyntax


Summary
Locates legacy 'Rem' comments.
Reasoning
Modern VB comments use a single quote character (') to denote the beginning of a comment: the legacy 'Rem' syntax is obsolete.
The following code example(s) would trigger this inspection:

Public Sub DoSomething()
    Rem this comment is using an obsolete legacy syntax
End Sub

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

Public Sub DoSomething()
    ' this comment is using the modern comment syntax
End Sub


Back to List