Skip to content

Function name shouldn't start with "Получить" (FunctionNameStartsWithGet)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell BSL
OS
Info No 3 standard

Description

In the name of the function, the word get superfluous since function by definition returns a value.

Examples

// Incorrect: 
Function GetNameByCode()

// Correct: 
Function NameByCode()

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:FunctionNameStartsWithGet-off
// BSLLS:FunctionNameStartsWithGet-on

Parameter for config

"FunctionNameStartsWithGet": false