Rollup merge of #47535 - Manishearth:ignore-target, r=kennytm

add target/ to ignored tidy dirs

Sometimes you get a target directory from running cargo in the rust repo (the root is `src/`), and it contains generated files. Just whitelist it since it causes tidy to spew warnings uncontrollably.
This commit is contained in:
Guillaume Gomez 2018-01-20 22:32:46 +01:00 committed by GitHub
commit 0f84ab4a41

View File

@ -69,6 +69,7 @@ fn filter_dirs(path: &Path) -> bool {
"src/tools/miri",
"src/librustc/mir/interpret",
"src/librustc_mir/interpret",
"src/target",
];
skip.iter().any(|p| path.ends_with(p))
}