ruff
0d363ab2 - fix(ERA001): detect commented out `case` statements, add more one-line support (#10055)

Commit
1 year ago
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`
Parents
Loading