Missed postfix "ServerCall" (CommonModuleNameServerCall)¶
| Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
|---|---|---|---|---|---|
Code smell |
BSL |
Minor |
Yes |
5 |
standardbadpracticeunpredictable |
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.
Adopted common modules in configuration extensions are not checked because their properties may be defined in the base configuration. Own common modules in extensions are checked as usual.
Examples¶
FilesServerCall, CommonServerCall
Sources¶
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:CommonModuleNameServerCall-off
// BSLLS:CommonModuleNameServerCall-on
Parameter for config¶
"CommonModuleNameServerCall": false