mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
Add Fix::applicability
to JSON output (#4341)
This commit is contained in:
parent
04097d194c
commit
ddbe5a1243
4 changed files with 7 additions and 4 deletions
|
@ -189,14 +189,13 @@ def fibonacci(n):
|
|||
|
||||
let fib_source = SourceFileBuilder::new("fib.py", fib).finish();
|
||||
|
||||
#[allow(deprecated)]
|
||||
let unused_variable = Diagnostic::new(
|
||||
UnusedVariable {
|
||||
name: "x".to_string(),
|
||||
},
|
||||
TextRange::new(TextSize::from(94), TextSize::from(95)),
|
||||
)
|
||||
.with_fix(Fix::unspecified(Edit::deletion(
|
||||
.with_fix(Fix::suggested(Edit::deletion(
|
||||
TextSize::from(94),
|
||||
TextSize::from(99),
|
||||
)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue