Merge pull request #459 from epage/go

fix(config): Set file types for go.mod/go.sum
This commit is contained in:
Ed Page 2022-04-06 12:51:03 -05:00 committed by GitHub
commit faad85a983
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 11 deletions

View file

@ -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()
}
}

View file

@ -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"]),