Attribute Value Out of Sync

Indicates that the value of a hidden VB attribute is out of sync with the corresponding Rubberduck annotation comment.

Reasoning

Keeping Rubberduck annotation comments in sync with the hidden VB attribute values, surfaces these hidden attributes in the VBE code panes; Rubberduck can rewrite the attributes to match the corresponding annotation comment.

Default severity

Warning

Inspection type

CodeQualityIssues

Examples

This example should trigger a result

MyModule (StandardModule)
'@Description("foo") Public Sub DoSomething() Attribute VB_Description = "bar" ' ... 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.AttributeValueOutOfSyncInspection.cs (Prerelease-v2.5.9.6289)