# no-empty-function

Disallow empty functions

An uncommented empty concrete function and an accidentally unfinished function have the same source shape.
Instead, you SHOULD remove the function, implement it, or explain the intentional empty body with a comment.

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

## Reported

```ds title="main.ds"
function initialize(): void {}
```

## Accepted

```ds title="main.ds"
function initialize(): void {
    // initialization is intentionally unnecessary
}
```

## Prior art

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

[language/linter/src/rules/style/no_empty_function.rs:7](https://github.com/destack-sh/destack/blob/main/language/linter/src/rules/style/no_empty_function.rs#L7)
