aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tools/tests/docs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_tools/tests/docs.rs')
-rw-r--r--crates/ra_tools/tests/docs.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_tools/tests/docs.rs b/crates/ra_tools/tests/docs.rs
index 1629247da..b4403c471 100644
--- a/crates/ra_tools/tests/docs.rs
+++ b/crates/ra_tools/tests/docs.rs
@@ -35,27 +35,23 @@ fn no_docs_comments() {
35 let crates = project_root().join("crates"); 35 let crates = project_root().join("crates");
36 let iter = WalkDir::new(crates); 36 let iter = WalkDir::new(crates);
37 for f in iter.into_iter().filter_entry(|e| !is_hidden(e)) { 37 for f in iter.into_iter().filter_entry(|e| !is_hidden(e)) {
38 let f = f.unwrap(); //dbg!(f.unwrap()); 38 let f = f.unwrap();
39 if f.file_type().is_dir() { 39 if f.file_type().is_dir() {
40 continue; 40 continue;
41 } 41 }
42 if f.path().extension().map(|it| it != "rs").unwrap_or(false) { 42 if f.path().extension().map(|it| it != "rs").unwrap_or(false) {
43 //dbg!(f.path());
44 continue; 43 continue;
45 } 44 }
46 if is_exclude_dir(f.path()) { 45 if is_exclude_dir(f.path()) {
47 //dbg!(f.path());
48 continue; 46 continue;
49 } 47 }
50 if is_exclude_file(&f) { 48 if is_exclude_file(&f) {
51 //dbg!(f.path());
52 continue; 49 continue;
53 } 50 }
54 let mut reader = BufReader::new(fs::File::open(f.path()).unwrap()); 51 let mut reader = BufReader::new(fs::File::open(f.path()).unwrap());
55 let mut line = String::new(); 52 let mut line = String::new();
56 reader.read_line(&mut line).unwrap(); 53 reader.read_line(&mut line).unwrap();
57 if !line.starts_with("//!") { 54 if !line.starts_with("//!") {
58 //dbg!(line);
59 panic!( 55 panic!(
60 "\nMissing docs strings\n\ 56 "\nMissing docs strings\n\
61 module: {}\n\ 57 module: {}\n\