# no-used-underscore-binding

Disallow using bindings named as unused

A leading underscore declares that a binding is intentionally unused, so later uses contradict its name.
Instead, you SHOULD remove the underscore or remove every use of the binding.

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

## Reported

```ds title="main.ds"
function double(_value: int32): int32 {
    return _value * 2;
}
```

## Accepted

```ds title="main.ds"
function double(value: int32): int32 {
    return value * 2;
}
```

## Prior art

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

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