-
Notifications
You must be signed in to change notification settings - Fork 302
ObsoleteGlobalInspection
Max Dörner edited this page Jun 2, 2019
·
3 revisions
Description: Use of obsolete Global access modifier
Type: CodeInspectionType.LanguageOpportunities
Default severity: CodeInspectionSeverity.Suggestion
This inspection finds public fields declared with the obsolete Global
access modifier.
Field foo
is declared with the obsolete Global
access modifier:
Global foo As Integer
Global
is redundant and confusing, and was deprecated in favor of Public
. Globals are a code smell anyway, right?
QuickFix: Replace 'Global' access modifier with 'Public'
Public foo As Integer
Global
can only be specified in standard code modules. Public
fields in standard code modules have exactly the same scope; this quickfix replaces the deprecated access modifier with the Public
keyword.
rubberduckvba.com
© 2014-2021 Rubberduck project contributors
- Contributing
- Build process
- Version bump
- Architecture Overview
- IoC Container
- Parser State
- The Parsing Process
- How to view parse tree
- UI Design Guidelines
- Strategies for managing COM object lifetime and release
- COM Registration
- Internal Codebase Analysis
- Projects & Workflow
- Adding other Host Applications
- Inspections XML-Doc
-
VBE Events