Duplicate regions (DuplicateRegion)¶
Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Code smell |
BSL OS |
Info |
Yes |
1 |
standard |
Description¶
All code should be structured and divided into sections (regions), each section should be present in the module in the singular.
Examples¶
Sources¶
- Source: Standard: Module structure (RU)
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:DuplicateRegion-off
// BSLLS:DuplicateRegion-on
Parameter for config¶
"DuplicateRegion": false