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.92k stars 301 forks source link

Code inspection highlighting issues with FUNCRES.XLAM and RibbonX_Code #3419

Closed quentinharris closed 7 years ago

quentinharris commented 7 years ago

Hi,

I am new to using RubberDuck having downloaded it today. I have looked through the tutorial material, and followed the steps recommended i.e. searching the wiki documentation, [Rubberduck] tag on Stack Overflow etc but still haven't seen anything relating to the following:

When i have a Excel VBE open and am in a procedure i have written (let's say Book 1, Module 1) and i run a code inspection i get a vast number of messages all pertaining to things that should be fixed in the FUNCRES.XLAM/RibbonX_Code e.g.

Questions:

1) I don't know what to do about these messages as they pertain to something i have not created and seem to be there by default. Do i fix? Do i leave alone?

2) Is there a way i can toggle off inspection of XLAM/Ribbon ? I know i can group by location which helps enormously.

Thanks

MDoerner commented 7 years ago

This is related to #3041.

To explain what is happening here: RD always parses and processes all projects open in the VBE. Unfortunately, this includes all third party xlma add-ins. So, RD is presenting inspection results for these add-ins as well. As you usually do not own them, you will not want to run fixes on them.

The linked issue is a request to provide a possibility to configure which projects should be considered. So, we know of the issue and there are a few ideas out there, but we have not gotten around to implement anything, yet.

rkapka commented 7 years ago

Well, that clearly indicates that these add-in developers are writing bad VBA code. Let's introsuce them to RD to so they can fix their issues. :wink:

quentinharris commented 7 years ago

Thanks

Vogel612 commented 7 years ago

closing as dupe of #3041