mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
Rename FixKind
to FixAvailability
(#7658)
**Summary** `FixKind` feels to generic, i suggest renaming it to something like `FixAvailibility`. Commands used: ```bash rg FixKind --files-with-matches | xargs sed -i 's/FixKind/FixAvailability/g' rg fix_kind --files-with-matches | xargs sed -i 's/fix_kind/fix_availability/g' rg FIX_KIND --files-with-matches | xargs sed -i 's/FIX_KIND/FIX_AVAILABILITY/g' cargo fmt ``` `rg -i "fix.kind"` doesn't show any matches anymore.
This commit is contained in:
parent
ebdfcee87f
commit
0961f008b8
76 changed files with 185 additions and 179 deletions
|
@ -2,7 +2,7 @@ pub use diagnostic::{Diagnostic, DiagnosticKind};
|
|||
pub use edit::Edit;
|
||||
pub use fix::{Applicability, Fix, IsolationLevel};
|
||||
pub use source_map::{SourceMap, SourceMarker};
|
||||
pub use violation::{AlwaysFixableViolation, FixKind, Violation};
|
||||
pub use violation::{AlwaysFixableViolation, FixAvailability, Violation};
|
||||
|
||||
mod diagnostic;
|
||||
mod edit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue