diff --git a/Cargo.lock b/Cargo.lock index 2999ce2098..c556e71154 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1930,6 +1930,7 @@ dependencies = [ "serde-wasm-bindgen", "serde_json", "shellexpand", + "similar", "strum", "strum_macros", "test-case", diff --git a/Cargo.toml b/Cargo.toml index eaa59d4d33..67b58b9a90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,7 @@ semver = { version = "1.0.16" } serde = { version = "1.0.147", features = ["derive"] } serde_json = { version = "1.0.87" } shellexpand = { version = "3.0.0" } +similar = { version = "2.2.1" } strum = { version = "0.24.1", features = ["strum_macros"] } strum_macros = { version = "0.24.3" } textwrap = { version = "0.16.0" } diff --git a/README.md b/README.md index 961e64fb20..4aa7ad8fdf 100644 --- a/README.md +++ b/README.md @@ -323,6 +323,8 @@ Options: Attempt to automatically fix lint errors --fix-only Fix any fixable lint errors, but don't report on leftover violations. Implies `--fix` + --diff + Avoid writing any fixed files back; instead, output a diff for each changed file to stdout -n, --no-cache Disable cache reads --select