diff --git a/src/config.rs b/src/config.rs index c1cc1f7..3094eea 100644 --- a/src/config.rs +++ b/src/config.rs @@ -203,15 +203,6 @@ 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 f296412..1762abe 100644 --- a/src/default_types.rs +++ b/src/default_types.rs @@ -93,7 +93,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("fut", &["*.fut"]), ("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]), ("gn", &["*.gn", "*.gni"]), - ("go", &["*.go"]), + ("go", &["*.go", "go.mod"]), ("gradle", &["*.gradle"]), ("groovy", &["*.groovy", "*.gradle"]), ("gzip", &["*.gz", "*.tgz"]), @@ -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", "requirements.txt"]), + ("lock", &["*.lock", "package-lock.json", "requirements.txt", "go.sum"]), ("log", &["*.log"]), ("lua", &["*.lua"]), ("lz4", &["*.lz4"]),