# no-todo

Disallow calls to the canonical todo function

A `todo` call marks unfinished code and traps if execution reaches it.
Instead, you SHOULD implement the operation or remove the path that requires it.

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

## Reported

```ds title="main.ds"
import { todo } from "destack:error";

function process(): void {
    todo("process");
}
```

## Accepted

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

## Prior art

- [Clippy · todo](https://rust-lang.github.io/rust-clippy/master/index.html#todo)

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