Skip to content

Unused local method (UnusedLocalMethod)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell BSL
OS
Major Yes 1 standard
suspicious
unused

Parameters

Name Type Description Default value
attachableMethodPrefixes String Method prefixes (comma separated) подключаемый_,attachable_

Description

Modules should not have unused procedures and functions. Diagnostics can skip attachable methods that have prefixes specified in the diagnostic parameter.

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:UnusedLocalMethod-off
// BSLLS:UnusedLocalMethod-on

Parameter for config

"UnusedLocalMethod": {
    "attachableMethodPrefixes": "подключаемый_,attachable_"
}