Search documentation of Metastatic

# mix metastatic.dead_code (Metastatic v0.13.2)

View Source

Detects dead code in a given file.

## Usage

    mix metastatic.dead_code FILE [options]

## Options

- `--format` - Output format: text (default), json, or detailed
- `--language` - Source language (auto-detected if not specified)
- `--min-confidence` - Minimum confidence level: low (default), medium, or high

## Examples

    # Basic dead code check
    mix metastatic.dead_code my_file.py

    # JSON output
    mix metastatic.dead_code my_file.py --format json

    # Only high confidence results
    mix metastatic.dead_code my_file.ex --min-confidence high

## Exit Codes

- 0 - No dead code found
- 1 - Dead code detected
- 2 - Error during analysis