Closed SmileyFtW closed 4 years ago
Ha, thanks for that! I did notice this false positive while working on SecureADODB, but then forgot to make an issue for it.
You're most welcome. I am having a great time learning "better coding through RD Inspections".... LOL
Is this the same thing done differently or a different manifestation?
Private Sub DoBars()
Dim Bars As Collection
Set Bars = New Collection
Dim counter As Long
Dim currBar As BarModel
For counter = 1 To 2
Set currBar = New BarModel
With currBar
.ID = "ID" & counter 'False Positive
Bars.Add currBar, Key:=.ID
End With
Next
End Sub
Rubberduck version information Version 2.5.0.5422 OS: Microsoft Windows NT 10.0.18362.0, x64 Host Product: Microsoft Office x86 Host Version: 16.0.12730.20236 Host Executable: EXCEL.EXE
Description Subject Inspection flags a property let accessor as not used when it is used in a factory method
To Reproduce FooModel Class (Predeclared)
Expected behavior Inspection would not flag the Let accessor