You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite correct diagnostics, when two errors of the same category occur in the same module, scarb lint --fix only fixes one of them.
Steps
Create a module with code below
fn fun(){let foo:Option<i32> = Option::None;// This is just a variable.let _foo = match foo {Option::Some(v) => Result::Ok(v),Option::None => Result::Err('this is an err'),};}fn fun2(){let foo:Option<i32> = Option::None;// This is just a variable.let _foo = match foo {Option::Some(v) => Result::Ok(v),Option::None => Result::Err(Error::Error),};}
Run scarb lint --fix
It fixes only one of the function, but detect both of them
Scarb Version
2.11.0
Possible Solution(s)
No response
Notes
No response
The text was updated successfully, but these errors were encountered:
Problem
Despite correct diagnostics, when two errors of the same category occur in the same module,
scarb lint --fix
only fixes one of them.Steps
scarb lint --fix
Scarb Version
Possible Solution(s)
No response
Notes
No response
The text was updated successfully, but these errors were encountered: