Inspection Details

ObsoleteMemberUsage


Summary
Flags usages of members marked as obsolete with an @Obsolete("justification") Rubberduck annotation.
Reasoning
Marking members as obsolete can help refactoring a legacy code base. This inspection is a tool that makes it easy to locate obsolete member calls.
The following code example(s) would trigger this inspection:

Public Sub DoSomething()
    DoStuff ' member is marked as obsolete
End Sub
'@Obsolete("Use the newer DoThing() method instead")
Private Sub DoStuff()
    ' ...
End Sub
Private Sub DoThing()
    ' ...
End Sub

The following code example(s) would not trigger this inspection:

Public Sub DoSomething()
    DoThing
End Sub
'@Obsolete("Use the newer DoThing() method instead")
Private Sub DoStuff()
    ' ...
End Sub
Private Sub DoThing()
    ' ...
End Sub


Back to List