ruff/crates/ruff_linter
Ottavio Hartman 0d363ab239
fix(ERA001): detect commented out case statements, add more one-line support (#10055)
## Summary

Closes #10031 

- Detect commented out `case` statements. Playground repro:
https://play.ruff.rs/5a305aa9-6e5c-4fa4-999a-8fc427ab9a23
- Add more support for one-line commented out code.

## Test Plan

Unit tested and tested with
```sh
cargo run -p ruff -- check crates/ruff_linter/resources/test/fixtures/eradicate/ERA001.py --no-cache --preview --select ERA001
```

TODO:
- [x] `cargo insta test`
2024-02-19 22:56:42 -05:00
..
resources fix(ERA001): detect commented out case statements, add more one-line support (#10055) 2024-02-19 22:56:42 -05:00
src fix(ERA001): detect commented out case statements, add more one-line support (#10055) 2024-02-19 22:56:42 -05:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Bump version to v0.2.2 (#10018) 2024-02-17 22:15:04 +00:00