Search documentation of Metastatic

# mix metastatic.unused_vars (Metastatic v0.2.0)

View Source

Detects unused variables in a given file.

## Usage

    mix metastatic.unused_vars FILE [options]

## Options

- `--format` - Output format: text (default), json, or detailed
- `--language` - Source language (auto-detected if not specified)
- `--ignore-underscore` - Ignore variables starting with underscore (default: true)

## Examples

    mix metastatic.unused_vars my_file.py
    mix metastatic.unused_vars my_file.ex --format json

## Exit Codes

- 0 - No unused variables
- 1 - Unused variables detected
- 2 - Error during analysis