Table of Contents

RDC01010: Empty module

Severity: Information  ·  Family: RDC (Rubberduck Core analyzers)  ·  Raised by: EmptyModuleAnalyzer

A module declares nothing: no variable, constant, procedure, Declare, Enum, Type or Event, and no Implements (MS-VBAL §5.2 Module Declaration Section Structure).

Its options, attributes, DefType statements and comments declare nothing. A module that declares nothing does nothing in the project, and can be removed.

A form is not reported: its designer is part of it, whether its code declares anything or not. A document module, the code of a host's document, is not reported either.

The finding is the first line of the module.

How it is raised

Situation Example Resolution
A standard or class module with only options and comments. Option Explicit
' to do
Remove the module, or write what it is for.

See also


ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca