Module Without Folder

Indicates that a user module is missing a @Folder Rubberduck annotation.

Reasoning

Modules without a custom @Folder annotation will be grouped under the default folder in the Code Explorer toolwindow. By specifying a custom @Folder annotation, modules can be organized by functionality rather than simply listed.

Default severity

Suggestion

Inspection type

RubberduckOpportunities

Examples

This example should trigger a result

MyModule (StandardModule)
Option Explicit ' ...

This example should NOT trigger a result

MyModule (StandardModule)
'@Folder("Foo") Option Explicit ' ...

Rubberduck.CodeAnalysis.Inspections.Concrete.ModuleWithoutFolderInspection.cs (Prerelease-v2.5.9.6289)