Obsolete Comment Syntax

Locates legacy 'Rem' comments.

 NEW! This inspection is only available in pre-release builds.

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

QuickFixes

The following quickfixes are available for this inspection:

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.2.6174)