Skip to content

Commit ae3ebf0

Browse files
authored
Rollup merge of #53399 - varkor:ignore-non-md-unstable_book, r=nikomatsakis
Tidy: ignore non-Markdown files when linting for the Unstable Book Previously, any file would be assumed a `.md`, which is annoying when files like `.DS_STORE` slip in and then cause tidy errors.
2 parents 6e98ed9 + 35a03c8 commit ae3ebf0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/tidy/src/unstable_book.rs

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub fn collect_unstable_book_section_file_names(dir: &path::Path) -> BTreeSet<St
6060
.map(|entry| entry.expect("could not read directory entry"))
6161
.filter(dir_entry_is_file)
6262
.map(|entry| entry.file_name().into_string().unwrap())
63+
.filter(|n| n.ends_with(".md"))
6364
.map(|n| n.trim_right_matches(".md").to_owned())
6465
.collect()
6566
}

0 commit comments

Comments
 (0)