Skip to content

Missed postfix "ServerCall" (CommonModuleNameServerCall)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell BSL Minor Yes 5 standard
badpractice
unpredictable

Description

Common server modules for calling from the client contain server procedures and functions available from the client code. They constitute the client interface of the application server. Such procedures and functions are placed in common modules with the following property:

  • Server (ServerCall is enabled)

Name common server modules to be called from the client according to general rules of naming metadata objects. Make sure they include the "ServerCall" (rus. "ВызовСервера") postfix.

Examples

FilesServerCall, CommonServerCall

Sources

Standard: Modules (RU)

Snippets

Diagnostic ignorance in code

// BSLLS:CommonModuleNameServerCall-off
// BSLLS:CommonModuleNameServerCall-on

Parameter for config

"CommonModuleNameServerCall": false