aboutsummaryrefslogtreecommitdiff
path: root/xtask/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-31 08:59:38 +0100
committerAleksey Kladov <[email protected]>2020-05-31 08:59:38 +0100
commit8915183d7da07a4b295e5e93a889dea4c15024a0 (patch)
treede6a3d149911cc56e4e962a8276edb135c6e188a /xtask/tests
parentf593393ebb9bfa515caf168a9f037324eeb6edfe (diff)
Don't require module docs for Features and Assists
Diffstat (limited to 'xtask/tests')
-rw-r--r--xtask/tests/tidy.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs
index 06ff45d99..4ac5d929f 100644
--- a/xtask/tests/tidy.rs
+++ b/xtask/tests/tidy.rs
@@ -102,7 +102,7 @@ impl TidyDocs {
102 fn visit(&mut self, path: &Path, text: &str) { 102 fn visit(&mut self, path: &Path, text: &str) {
103 // Test hopefully don't really need comments, and for assists we already 103 // Test hopefully don't really need comments, and for assists we already
104 // have special comments which are source of doc tests and user docs. 104 // have special comments which are source of doc tests and user docs.
105 if is_exclude_dir(path, &["tests", "test_data", "handlers"]) { 105 if is_exclude_dir(path, &["tests", "test_data"]) {
106 return; 106 return;
107 } 107 }
108 108
@@ -117,9 +117,12 @@ impl TidyDocs {
117 117
118 if first_line.starts_with("//!") { 118 if first_line.starts_with("//!") {
119 if first_line.contains("FIXME") { 119 if first_line.contains("FIXME") {
120 self.contains_fixme.push(path.to_path_buf()) 120 self.contains_fixme.push(path.to_path_buf());
121 } 121 }
122 } else { 122 } else {
123 if text.contains("// Feature:") || text.contains("// Assist:") {
124 return;
125 }
123 self.missing_docs.push(path.display().to_string()); 126 self.missing_docs.push(path.display().to_string());
124 } 127 }
125 128