From bead488a6c552dff1e2a670bbf3164910b919a06 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 6 Apr 2022 12:19:49 -0500 Subject: [PATCH] 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 --- src/default_types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]),