mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Use a separate fix-isolation group for every parent node (#4774)
This commit is contained in:
parent
621718784a
commit
b8f45c93b4
16 changed files with 52 additions and 72 deletions
|
@ -28,11 +28,11 @@ pub enum Applicability {
|
|||
}
|
||||
|
||||
/// Indicates the level of isolation required to apply a fix.
|
||||
#[derive(Default, Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord, is_macro::Is)]
|
||||
#[derive(Default, Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
pub enum IsolationLevel {
|
||||
/// The fix should be applied in isolation.
|
||||
Isolated,
|
||||
/// The fix should be applied as long as no other fixes in the same group have been applied.
|
||||
Group(u32),
|
||||
/// The fix should be applied as long as it does not overlap with any other fixes.
|
||||
#[default]
|
||||
NonOverlapping,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue