Skip to content

Unused parameter (UnusedParameters)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell OS Major Yes 5 design
unused

Description

Methods shouldn't contain unused parameters.

Examples

Function AddTwoNumbers(Val FirstValue, Val SecondValue, Val UnusedParameter)

    Return FirstValue + SecondValue;

EndFunction

Snippets

Diagnostic ignorance in code

// BSLLS:UnusedParameters-off
// BSLLS:UnusedParameters-on

Parameter for config

"UnusedParameters": false