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

Smarter quick fix for unused param inspection #650

Open Hosch250 opened 9 years ago

Hosch250 commented 9 years ago

Right now, we do not offer a quick fix for parameters that are part of, or implement, an interface. We should be able to detect whether the parameter is ever used, and offer a quick fix for those.

There is the question of what to do with the remaining interface params that aren't used. Not display them? Display them because perhaps the class shouldn't be implementing the interface? Display them with a different message?

Hosch250 commented 9 years ago

Relevant code here: https://github.com/rubberduck-vba/Rubberduck/blob/next/RetailCoder.VBE/Inspections/ParameterNotUsedInspection.cs#L41

Used here: https://github.com/rubberduck-vba/Rubberduck/blob/next/RetailCoder.VBE/Inspections/ParameterNotUsedInspectionResult.cs#L29