Attribute Value Out of Sync

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

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

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

QuickFixes

The following quickfixes are available for this inspection:

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