Skip to content

Commit ae1c63f

Browse files
committed
Exclude crates/ide_db/src/helpers/generated_lints.rs from tidy::check_todo
1 parent 0c89f38 commit ae1c63f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

xtask/src/tidy.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/#redo-after-
193193
fn deny_clippy(path: &Path, text: &str) {
194194
let ignore = &[
195195
// The documentation in string literals may contain anything for its own purposes
196-
"ide_completion/src/generated_lint_completions.rs",
196+
"ide_db/src/helpers/generated_lints.rs",
197+
// The tests test clippy lint hovers
198+
"ide/src/hover.rs",
197199
];
198200
if ignore.iter().any(|p| path.ends_with(p)) {
199201
return;
@@ -280,7 +282,7 @@ fn check_todo(path: &Path, text: &str) {
280282
// `ast::make`.
281283
"ast/make.rs",
282284
// The documentation in string literals may contain anything for its own purposes
283-
"ide_completion/src/generated_lint_completions.rs",
285+
"ide_db/src/helpers/generated_lints.rs",
284286
];
285287
if need_todo.iter().any(|p| path.ends_with(p)) {
286288
return;
@@ -310,7 +312,7 @@ fn check_dbg(path: &Path, text: &str) {
310312
"ide_completion/src/completions/postfix.rs",
311313
// The documentation in string literals may contain anything for its own purposes
312314
"ide_completion/src/lib.rs",
313-
"ide_completion/src/generated_lint_completions.rs",
315+
"ide_db/src/helpers/generated_lints.rs",
314316
// test for doc test for remove_dbg
315317
"src/tests/generated.rs",
316318
];

0 commit comments

Comments
 (0)