fix(config): Skip lock files by default

Part of #362
This commit is contained in:
Ed Page 2021-10-23 08:42:21 -05:00
parent 83dc9dcb5f
commit 29ebe5ab48

View file

@ -167,6 +167,15 @@ impl TypeEngineConfig {
pub fn patterns(&self) -> impl Iterator<Item = (kstring::KString, GlobEngineConfig)> {
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![