diff options
Diffstat (limited to 'xtask/tests/tidy.rs')
-rw-r--r-- | xtask/tests/tidy.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs index d335adb72..9de60c76c 100644 --- a/xtask/tests/tidy.rs +++ b/xtask/tests/tidy.rs | |||
@@ -42,6 +42,7 @@ fn smoke_test_docs_generation() { | |||
42 | // We don't commit docs to the repo, so we can just overwrite in tests. | 42 | // We don't commit docs to the repo, so we can just overwrite in tests. |
43 | codegen::generate_assists_docs(Mode::Overwrite).unwrap(); | 43 | codegen::generate_assists_docs(Mode::Overwrite).unwrap(); |
44 | codegen::generate_feature_docs(Mode::Overwrite).unwrap(); | 44 | codegen::generate_feature_docs(Mode::Overwrite).unwrap(); |
45 | codegen::generate_diagnostic_docs(Mode::Overwrite).unwrap(); | ||
45 | } | 46 | } |
46 | 47 | ||
47 | #[test] | 48 | #[test] |
@@ -130,6 +131,14 @@ https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/#redo-after- | |||
130 | } | 131 | } |
131 | 132 | ||
132 | fn deny_clippy(path: &PathBuf, text: &String) { | 133 | fn deny_clippy(path: &PathBuf, text: &String) { |
134 | let ignore = &[ | ||
135 | // The documentation in string literals may contain anything for its own purposes | ||
136 | "completion/src/generated_lint_completions.rs", | ||
137 | ]; | ||
138 | if ignore.iter().any(|p| path.ends_with(p)) { | ||
139 | return; | ||
140 | } | ||
141 | |||
133 | if text.contains("[\u{61}llow(clippy") { | 142 | if text.contains("[\u{61}llow(clippy") { |
134 | panic!( | 143 | panic!( |
135 | "\n\nallowing lints is forbidden: {}. | 144 | "\n\nallowing lints is forbidden: {}. |
@@ -213,7 +222,7 @@ fn check_todo(path: &Path, text: &str) { | |||
213 | // `ast::make`. | 222 | // `ast::make`. |
214 | "ast/make.rs", | 223 | "ast/make.rs", |
215 | // The documentation in string literals may contain anything for its own purposes | 224 | // The documentation in string literals may contain anything for its own purposes |
216 | "completion/generated_features.rs", | 225 | "completion/src/generated_lint_completions.rs", |
217 | ]; | 226 | ]; |
218 | if need_todo.iter().any(|p| path.ends_with(p)) { | 227 | if need_todo.iter().any(|p| path.ends_with(p)) { |
219 | return; | 228 | return; |