Duplicated Annotation

Warns about duplicated annotations.

Reasoning

Rubberduck annotations should not be specified more than once for a given module, member, variable, or expression.

Default severity

Error

Inspection type

RubberduckOpportunities

Examples

This example should trigger a result

MyModule (StandardModule)
'@Folder("Bar") '@Folder("Foo") Public Sub DoSomething() ' ... End Sub

This example should NOT trigger a result

MyModule (StandardModule)
'@Folder("Foo.Bar") Public Sub DoSomething() ' ... End Sub

Rubberduck.CodeAnalysis.Inspections.Concrete.DuplicatedAnnotationInspection.cs (Prerelease-v2.5.9.6289)