Missed postfix "Cached" (CommonModuleNameCached)¶
Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Code smell |
BSL |
Major |
Yes |
5 |
standard badpractice unpredictable |
Description¶
Use the "Cached" (rus. ПовтИсп) and "ClientCached" (rus. КлиентПовтИсп) postfixes for the modules that implement functions with repeated use of return values (upon the call or session time) on the server and on the client respectively.
Examples¶
FilesClientCached, UsersInternalCached
Sources¶
Standard: Rules for creating common modules (RU)
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:CommonModuleNameCached-off
// BSLLS:CommonModuleNameCached-on
Parameter for config¶
"CommonModuleNameCached": false