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
ruff_workspace
This crate is an internal component of Ruff. The Rust API exposed here is unstable and will have frequent breaking changes.
This version (0.0.23) is a component of Ruff 0.17.6. The source can be found here.
See Ruff's crate versioning policy for details on versioning.