Skip to content

Export methods in command and general command modules (CommandModuleExportMethods)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell BSL Info Yes 1 standard
clumsy

Description

You should not place export methods in command and General command modules. You can't access these modules from code external to them, so export methods in these modules do not make sense.

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:CommandModuleExportMethods-off
// BSLLS:CommandModuleExportMethods-on

Parameter for config

"CommandModuleExportMethods": false