mirror of https://github.com/astral-sh/ruff
Mark invalid comment diagnostics as unsafe fixes
This commit is contained in:
parent
9929cf416c
commit
32af34141f
|
|
@ -250,7 +250,7 @@ impl Suppressions {
|
|||
},
|
||||
error.range,
|
||||
);
|
||||
diagnostic.set_fix(Fix::safe_edit(delete_comment(error.range, locator)));
|
||||
diagnostic.set_fix(Fix::unsafe_edit(delete_comment(error.range, locator)));
|
||||
}
|
||||
|
||||
for invalid in &self.invalid {
|
||||
|
|
@ -260,7 +260,7 @@ impl Suppressions {
|
|||
},
|
||||
invalid.comment.range,
|
||||
);
|
||||
diagnostic.set_fix(Fix::safe_edit(delete_comment(
|
||||
diagnostic.set_fix(Fix::unsafe_edit(delete_comment(
|
||||
invalid.comment.range,
|
||||
locator,
|
||||
)));
|
||||
|
|
|
|||
Loading…
Reference in New Issue