Redundant Option

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

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

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.9.6289)