Redundant Option

Identifies redundant module options that are set to their implicit default.

 NEW! This inspection is only available in pre-release builds.

Reasoning

Module options that are redundant can be safely removed. Disable this inspection if your convention is to explicitly specify them; a future inspection may be used to enforce consistently explicit module options.

Default severity

Hint

Inspection type

LanguageOpportunities

QuickFixes

The following quickfixes are available for this inspection:

Examples

This example should trigger a result

MyModule (StandardModule)
Option Explicit Option Base 0 Option Compare Binary Public Sub DoSomething() End Sub

This example should NOT trigger a result

MyModule (StandardModule)
Option Explicit Public Sub DoSomething() End Sub

Rubberduck.CodeAnalysis.Inspections.Concrete.RedundantOptionInspection.cs (Prerelease-v2.5.2.6174)