diff options
Diffstat (limited to 'xtask/tests/tidy-tests/docs.rs')
-rw-r--r-- | xtask/tests/tidy-tests/docs.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xtask/tests/tidy-tests/docs.rs b/xtask/tests/tidy-tests/docs.rs index fe5852bc6..b766aeff1 100644 --- a/xtask/tests/tidy-tests/docs.rs +++ b/xtask/tests/tidy-tests/docs.rs | |||
@@ -8,7 +8,9 @@ use walkdir::{DirEntry, WalkDir}; | |||
8 | use xtask::project_root; | 8 | use xtask::project_root; |
9 | 9 | ||
10 | fn is_exclude_dir(p: &Path) -> bool { | 10 | fn is_exclude_dir(p: &Path) -> bool { |
11 | let exclude_dirs = ["tests", "test_data"]; | 11 | // Test hopefully don't really need comments, and for assists we already |
12 | // have special comments which are source of doc tests and user docs. | ||
13 | let exclude_dirs = ["tests", "test_data", "assists"]; | ||
12 | let mut cur_path = p; | 14 | let mut cur_path = p; |
13 | while let Some(path) = cur_path.parent() { | 15 | while let Some(path) = cur_path.parent() { |
14 | if exclude_dirs.iter().any(|dir| path.ends_with(dir)) { | 16 | if exclude_dirs.iter().any(|dir| path.ends_with(dir)) { |