ruff/crates/ruff_linter/src/checkers
w0nder1ng 08221454f6
[`perflint`] Implement fix for `manual-dict-comprehension` (`PERF403`) (#16719)
## Summary

This change adds an auto-fix for manual dict comprehensions. It also
copies many of the improvements from #13919 (and associated PRs fixing
issues with it), and moves some of the utility functions from
`manual_list_comprehension.rs` into a separate `helpers.rs` to be used
in both.

## Test Plan

I added a preview test case to showcase the new fix and added a test
case in `PERF403.py` to make sure lines with semicolons function. I
didn't yet make similar tests to the ones I added earlier to
`PERF401.py`, but the logic is the same, so it might be good to add
those to make sure they work.
2025-04-18 13:10:40 -04:00
..
ast [`perflint`] Implement fix for `manual-dict-comprehension` (`PERF403`) (#16719) 2025-04-18 13:10:40 -04:00
filesystem.rs Add `per-file-target-version` option (#16257) 2025-02-24 08:47:13 -05:00
imports.rs Add `per-file-target-version` option (#16257) 2025-02-24 08:47:13 -05:00
logical_lines.rs ruff_linter: adjust empty spans after line terminator more generally 2025-01-15 13:37:52 -05:00
mod.rs Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
noqa.rs Fix RUF100 to detect unused file-level noqa directives with specific codes (#17042) (#17061) 2025-04-07 09:21:52 -05:00
physical_lines.rs [`ruff`] Indented form feeds (`RUF054`) (#16049) 2025-02-09 19:23:48 -05:00
tokens.rs [`pylint`] Do not offer fix for raw strings (`PLE251`) (#16132) 2025-02-13 08:36:11 +00:00