From f0ba78db1a5b2953556619204e3c325c007f3af6 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 16 Jun 2022 13:56:41 -0500 Subject: [PATCH] fix(cli): Skip files that stdout is writing to Fixes #502 --- src/bin/typos-cli/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/typos-cli/main.rs b/src/bin/typos-cli/main.rs index aaf8fcf..327cdcc 100644 --- a/src/bin/typos-cli/main.rs +++ b/src/bin/typos-cli/main.rs @@ -181,6 +181,7 @@ fn run_checks( let mut walk = ignore::WalkBuilder::new(path); walk.threads(args.threads) + .skip_stdout(true) .hidden(walk_policy.ignore_hidden()) .ignore(walk_policy.ignore_dot()) .git_global(walk_policy.ignore_global())