fix(config): Set file types for go.mod/go.sum

`go.mod` seems to be a specification file which we tend to lump in with
the language itself since a weirdly spell dependency will likely show up
in code.

`go.sum` seems to be like a lock file which we quarantine into its own
file type.

Fixes #458
This commit is contained in:
Ed Page 2022-04-06 12:19:49 -05:00
parent e3a1397e04
commit bead488a6c

View file

@ -93,7 +93,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("fut", &["*.fut"]), ("fut", &["*.fut"]),
("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]), ("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]),
("gn", &["*.gn", "*.gni"]), ("gn", &["*.gn", "*.gni"]),
("go", &["*.go"]), ("go", &["*.go", "go.mod"]),
("gradle", &["*.gradle"]), ("gradle", &["*.gradle"]),
("groovy", &["*.groovy", "*.gradle"]), ("groovy", &["*.groovy", "*.gradle"]),
("gzip", &["*.gz", "*.tgz"]), ("gzip", &["*.gz", "*.tgz"]),
@ -146,7 +146,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
]), ]),
("lilypond", &["*.ly", "*.ily"]), ("lilypond", &["*.ly", "*.ily"]),
("lisp", &["*.el", "*.jl", "*.lisp", "*.lsp", "*.sc", "*.scm"]), ("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"]), ("log", &["*.log"]),
("lua", &["*.lua"]), ("lua", &["*.lua"]),
("lz4", &["*.lz4"]), ("lz4", &["*.lz4"]),