Skip to content

Commit c1ed2ac

Browse files
committed
tidy: add specific error message for trying to use spellcheck:fix.
1 parent 971feb6 commit c1ed2ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/tidy/src/ext_tool_checks.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ fn check_impl(
6565
None => vec![],
6666
};
6767

68+
if lint_args.contains(&"spellcheck:fix") {
69+
return Err(Error::Generic(
70+
"`spellcheck:fix` is no longer valid, use `--extra=check=spellcheck --bless`"
71+
.to_string(),
72+
));
73+
}
74+
6875
let python_all = lint_args.contains(&"py");
6976
let python_lint = lint_args.contains(&"py:lint") || python_all;
7077
let python_fmt = lint_args.contains(&"py:fmt") || python_all;

0 commit comments

Comments
 (0)