From ed669e8d94900a3681b257543a4a0c3a7266f5e1 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 28 Aug 2025 12:19:58 -0500 Subject: [PATCH] fix: Revert "fix: ignore go.mod by default" This reverts commit 4eeb460bb7575dcee03f2419e7331f71bc27b7c5. 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 --- crates/typos-cli/src/default_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typos-cli/src/default_types.rs b/crates/typos-cli/src/default_types.rs index 0b9f607a..e40ac025 100644 --- a/crates/typos-cli/src/default_types.rs +++ b/crates/typos-cli/src/default_types.rs @@ -102,7 +102,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("fut", &["*.fut"]), ("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]), ("gn", &["*.gn", "*.gni"]), - ("go", &["*.go", "go.work"]), + ("go", &["*.go", "go.mod", "go.work"]), ("gprbuild", &["*.gpr"]), ("gradle", &[ "*.gradle", "*.gradle.kts", "gradle.properties", "gradle-wrapper.*",