From 29ebe5ab48cc9841293e4ad28d0dba5f55c5f123 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 23 Oct 2021 08:42:21 -0500 Subject: [PATCH] fix(config): Skip lock files by default Part of #362 --- src/config.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/config.rs b/src/config.rs index 2a21607..f400e7c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -167,6 +167,15 @@ impl TypeEngineConfig { pub fn patterns(&self) -> impl Iterator { let mut patterns = self.patterns.clone(); + patterns + .entry("lock".into()) + .or_insert_with(|| GlobEngineConfig { + extend_glob: Vec::new(), + engine: EngineConfig { + check_file: Some(false), + ..Default::default() + }, + }); patterns.entry("cert".into()).or_insert_with(|| { GlobEngineConfig { extend_glob: vec![