Skip to content

ModuleOptionsNotSpecifiedFirstInspection

Max Dörner edited this page Jun 2, 2019 · 3 revisions

Description: Module options should be specified first

Type: CodeInspectionType.CodeQualityIssues

Default severity: CodeInspectionSeverity.Suggestion

This inspection finds code modules where options are not specified first in the module's declarations section.

Example:

Module options are not specified first in a module like this:

Option Compare Database
Private foo As Integer
Option Explicit
Private bar As String
Option Private Module
Option Base 0

Module options affect how the code in a module works and compiles; specifying them first in the module improves maintainability.


QuickFixes

This inspection does not have any quickfix implemented in v1.2; this may change in future versions.

Clone this wiki locally