Missing Attribute

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

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

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