Include entire prefix when reporting rule selector errors by charliermarsh · Pull Request #3375 · astral-sh/ruff (original) (raw)
This is a little more intuitive:
❯ cargo run -p ruff_cli -- foo.py --select BUG
Finished dev [unoptimized + debuginfo] target(s) in 0.34s
Running target/debug/ruff foo.py --select BUG
error: invalid value 'BUG' for '--select ': Unknown rule selector: BUG
For more information, try '--help'.
It also now looks like a proper Clippy error:
Closes #3374.
