rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 299 forks source link

Inspection for casing differences in interface implementations #3053

Open ThunderFrame opened 7 years ago

ThunderFrame commented 7 years ago

The casing of names of an interface, and the casing of names of their members aren't propagated by the VBE. Rubberduck should spot existing inconsistencies, and avoid directly or indirectly creating any when renaming an interface or member.

'ifoo
Option Explicit
Sub ExpertSexChange()
End Sub
'Class1
Option Explicit
Implements IFoo ' <-- incorrect casing
Private Sub IFoo_ExpertsExchange() 'incorrect casing
  Beep
End Sub
retailcoder commented 7 years ago

Really? Implements is "declarative"?? TIL... VBE bugs... and RD to the rescue!