We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8148f commit 777cf42Copy full SHA for 777cf42
crates/typos-cli/src/bin/typos-cli/main.rs
@@ -261,7 +261,17 @@ fn run_checks(args: &args::Args) -> proc_exit::ExitResult {
261
}
262
263
264
- walk.overrides(overrides);
+ walk.filter_entry(move |entry| {
265
+ let path = entry.path();
266
+ let is_dir = entry.file_type().map(|t| t.is_dir()).unwrap_or(false);
267
+ let matched = overrides.matched(path, is_dir);
268
+ log::debug!("match({path:?}, {is_dir}) == {matched:?}");
269
+ match matched {
270
+ ignore::Match::None => true,
271
+ ignore::Match::Ignore(_) => false,
272
+ ignore::Match::Whitelist(_) => true,
273
+ }
274
+ });
275
276
277
// HACK: Diff doesn't handle mixing content
0 commit comments