Obsolete Comment Syntax

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.

Default severity

Suggestion

Inspection type

LanguageOpportunities

Examples

This example should trigger a result

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

This example should NOT trigger a result

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

Rubberduck.CodeAnalysis.Inspections.Concrete.ObsoleteCommentSyntaxInspection.cs (Prerelease-v2.5.9.6289)