Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed669e8

Browse files
committed
fix: Revert "fix: ignore go.mod by default"
This reverts commit 4eeb460. Original PR: #684 Original Issue: #683 This didn't cause `go.mod` to be ignoredinstead it caused it to not be counted as go code. However, `go.mod` and `go.work` are similar file types and both are more of package specifications than lock files or other machine-only content. See #1363
1 parent a4c3e43 commit ed669e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/typos-cli/src/default_types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
102102
("fut", &["*.fut"]),
103103
("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]),
104104
("gn", &["*.gn", "*.gni"]),
105-
("go", &["*.go", "go.work"]),
105+
("go", &["*.go", "go.mod", "go.work"]),
106106
("gprbuild", &["*.gpr"]),
107107
("gradle", &[
108108
"*.gradle", "*.gradle.kts", "gradle.properties", "gradle-wrapper.*",

0 commit comments

Comments
 (0)