diff --git a/src/config.rs b/src/config.rs index 3094eea..c1cc1f7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -203,6 +203,15 @@ impl TypeEngineConfig { ..Default::default() }, }); + patterns + .entry("lock".into()) + .or_insert_with(|| GlobEngineConfig { + extend_glob: Vec::new(), + engine: EngineConfig { + check_file: Some(false), + ..Default::default() + }, + }); patterns.into_iter() } } diff --git a/src/default_types.rs b/src/default_types.rs index eaaa57e..f296412 100644 --- a/src/default_types.rs +++ b/src/default_types.rs @@ -110,7 +110,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("jinja", &["*.j2", "*.jinja", "*.jinja2"]), ("jl", &["*.jl"]), ("js", &["*.js", "*.jsx", "*.vue"]), - ("json", &["*.json", "composer.lock"]), + ("json", &["*.json"]), ("jsonl", &["*.jsonl"]), ("julia", &["*.jl"]), ("jupyter", &["*.ipynb", "*.jpynb"]), @@ -146,7 +146,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ]), ("lilypond", &["*.ly", "*.ily"]), ("lisp", &["*.el", "*.jl", "*.lisp", "*.lsp", "*.sc", "*.scm"]), - ("lock", &["*.lock", "package-lock.json"]), + ("lock", &["*.lock", "package-lock.json", "requirements.txt"]), ("log", &["*.log"]), ("lua", &["*.lua"]), ("lz4", &["*.lz4"]), @@ -262,7 +262,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("textile", &["*.textile"]), ("tf", &["*.tf"]), ("thrift", &["*.thrift"]), - ("toml", &["*.toml", "Cargo.lock"]), + ("toml", &["*.toml"]), ("ts", &["*.ts", "*.tsx"]), ("twig", &["*.twig"]), ("txt", &["*.txt"]),