-
Notifications
You must be signed in to change notification settings - Fork 311
Description
Rubberduck version information
The info below can be copy-paste-completed from the first lines of Rubberduck's log or the About box:
Version 2.5.9.6316
OS: Microsoft Windows NT 10.0.26100.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.18827.20164
Host Executable: EXCEL.EXE
Description
When using the @ignore SuspiciousInstanceMemberAccess directive to suppress a warning on ThisWorkbook.Close SaveChanges:=False, the inspection is still triggered, even when:
- The directive is placed directly above a dedicated procedure
- There are no intervening comments or blank lines
- The usage is clearly not referring to a default instance (i.e., ThisWorkbook is being called directly)
Workarounds like assigning ThisWorkbook to a Workbook variable do suppress the inspection, but it feels redundant when the intent is already explicit.
Expected behavior
Expected to ignore the SuspiciousInstanceMemberAccess
Screenshots
If applicable, add screenshots to help explain your problem.
Logfile
Rubberduck generates extensive logging in TRACE-Level. If no log was created at %APPDATA%\Rubberduck\Logs
, check your settings. Include this log for bug reports about the behavior of Rubberduck.
Additional context
Thank you for building such a powerful tool which has significantly improved the clarity and maintainability of my VBA codebase.