fix(cli): Skip files that stdout is writing to

Fixes #502
This commit is contained in:
Ed Page 2022-06-16 13:56:41 -05:00
parent 8dc6da2da0
commit f0ba78db1a

View file

@ -181,6 +181,7 @@ fn run_checks(
let mut walk = ignore::WalkBuilder::new(path); let mut walk = ignore::WalkBuilder::new(path);
walk.threads(args.threads) walk.threads(args.threads)
.skip_stdout(true)
.hidden(walk_policy.ignore_hidden()) .hidden(walk_policy.ignore_hidden())
.ignore(walk_policy.ignore_dot()) .ignore(walk_policy.ignore_dot())
.git_global(walk_policy.ignore_global()) .git_global(walk_policy.ignore_global())