Skip to content

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

Snippets

Diagnostic ignorance in code

// BSLLS:DuplicateRegion-off
// BSLLS:DuplicateRegion-on

Parameter for config

"DuplicateRegion": false