Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Code smell |
BSL OS |
Major |
Yes |
5 |
badpractice suspicious |
Name | Type | Description | Default value |
---|---|---|---|
commentAsCode |
Boolean |
Comment as code |
false |
Empty blocks are a sign of a possible error:
- Forgot to implement
- Deleted content
Empty blocks of code must be filled or removed.
// BSLLS:EmptyCodeBlock-off
// BSLLS:EmptyCodeBlock-on
"EmptyCodeBlock": {
"commentAsCode": false
}