# no-empty

Disallow uncommented empty block statements

An empty control-flow block and an accidentally unfinished block have the same source shape.
Instead, you SHOULD remove the construct, implement its body, or explain the intentional empty body with a comment.

- Category: style
- Level: warning
- Fix: none
- Scope: module

## Reported

```ds title="main.ds"
declare function ready(): boolean;

if (ready()) {}
```

## Accepted

```ds title="main.ds"
declare function ready(): boolean;

if (ready()) {
    // no action is required while ready
}
```

## Prior art

- [ESLint · no-empty](https://eslint.org/docs/latest/rules/no-empty)

[language/linter/src/rules/style/no_empty.rs:6](https://github.com/destack-sh/destack/blob/main/language/linter/src/rules/style/no_empty.rs#L6)
