Protected modules (ProtectedModule)¶
Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Code smell |
BSL |
Major |
Yes |
5 |
badpractice suspicious |
Description¶
The absence of module sources in the configuration is not recommended. In the case of a closed, password-protected module, the quality of the code decreases, it is impossible to review the code, and versioning of changes is not carried out.
Examples¶
Sources¶
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:ProtectedModule-off
// BSLLS:ProtectedModule-on
Parameter for config¶
"ProtectedModule": false