Missing Attribute

Indicates that a Rubberduck annotation is documenting the presence of a VB attribute that is actually missing.

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

Reasoning

Rubberduck annotations mean to document the presence of hidden VB attributes; this inspection flags annotations that do not have a corresponding VB attribute.

Default severity

Warning

Inspection type

RubberduckOpportunities

QuickFixes

The following quickfixes are available for this inspection:

Examples

This example should trigger a result

MyModule (StandardModule)
'@Description("foo") Public Sub DoSomething() ' ... End Sub

This example should NOT trigger a result

MyModule (StandardModule)
'@Description("foo") Public Sub DoSomething() Attribute VB_Description = "foo" ' ... End Sub

Rubberduck.CodeAnalysis.Inspections.Concrete.MissingAttributeInspection.cs (Prerelease-v2.5.2.6174)