mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-22 17:43:09 +08:00
Summary -- Fixes #27012 by finding the remaining places where we used rule codes rather than also including/preferring rule names. Most of these places used `RuleSelector`s, so I added `RuleSelector::name_and_code`, which uses `Rule::name_and_code` for rule selectors and falls back on the existing `prefix_and_code` for non-rule selectors. Test Plan -- Updated snapshots