diff options
author | Lukas Wirth <[email protected]> | 2021-06-04 18:18:45 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-04 18:45:10 +0100 |
commit | ae1c63fcdd0caf34f41fba62b04e3d868a589f1d (patch) | |
tree | 578b82c8fbe4653e72487e867e8a0a19b472ff29 /xtask | |
parent | 0c89f38378c2110cf6c080a5dc837bf7731fef5c (diff) |
Exclude `crates/ide_db/src/helpers/generated_lints.rs` from `tidy::check_todo`
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/tidy.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xtask/src/tidy.rs b/xtask/src/tidy.rs index 618cf12fb..9447d463d 100644 --- a/xtask/src/tidy.rs +++ b/xtask/src/tidy.rs | |||
@@ -193,7 +193,9 @@ https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/#redo-after- | |||
193 | fn deny_clippy(path: &Path, text: &str) { | 193 | fn deny_clippy(path: &Path, text: &str) { |
194 | let ignore = &[ | 194 | let ignore = &[ |
195 | // The documentation in string literals may contain anything for its own purposes | 195 | // 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", | ||
197 | ]; | 199 | ]; |
198 | if ignore.iter().any(|p| path.ends_with(p)) { | 200 | if ignore.iter().any(|p| path.ends_with(p)) { |
199 | return; | 201 | return; |
@@ -280,7 +282,7 @@ fn check_todo(path: &Path, text: &str) { | |||
280 | // `ast::make`. | 282 | // `ast::make`. |
281 | "ast/make.rs", | 283 | "ast/make.rs", |
282 | // The documentation in string literals may contain anything for its own purposes | 284 | // 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", |
284 | ]; | 286 | ]; |
285 | if need_todo.iter().any(|p| path.ends_with(p)) { | 287 | if need_todo.iter().any(|p| path.ends_with(p)) { |
286 | return; | 288 | return; |
@@ -310,7 +312,7 @@ fn check_dbg(path: &Path, text: &str) { | |||
310 | "ide_completion/src/completions/postfix.rs", | 312 | "ide_completion/src/completions/postfix.rs", |
311 | // The documentation in string literals may contain anything for its own purposes | 313 | // The documentation in string literals may contain anything for its own purposes |
312 | "ide_completion/src/lib.rs", | 314 | "ide_completion/src/lib.rs", |
313 | "ide_completion/src/generated_lint_completions.rs", | 315 | "ide_db/src/helpers/generated_lints.rs", |
314 | // test for doc test for remove_dbg | 316 | // test for doc test for remove_dbg |
315 | "src/tests/generated.rs", | 317 | "src/tests/generated.rs", |
316 | ]; | 318 | ]; |