From e6bedbde77058052de3f00d82a67284618385615 Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Mon, 6 Oct 2025 23:05:44 +0200 Subject: [PATCH] fix(config): Add some Go exclusions --- crates/typos-cli/src/file_type_specifics.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/typos-cli/src/file_type_specifics.rs b/crates/typos-cli/src/file_type_specifics.rs index f617b899..f9a51146 100644 --- a/crates/typos-cli/src/file_type_specifics.rs +++ b/crates/typos-cli/src/file_type_specifics.rs @@ -38,7 +38,15 @@ pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[ "go", StaticDictConfig { ignore_idents: &[ - "flate", // https://pkg.go.dev/compress/flate + "flate", // https://pkg.go.dev/compress/flate + "Rela32", // https://pkg.go.dev/debug/elf#Rela32 + "Rela64", // https://pkg.go.dev/debug/elf#Rela64 + "NewCBCEncrypter", // https://pkg.go.dev/crypto/cipher#NewCBCEncrypter + "NewCFBEncrypter", // https://pkg.go.dev/crypto/cipher#NewCFBEncrypter + "O_WRONLY", // https://pkg.go.dev/os#O_WRONLY and https://pkg.go.dev/syscall#O_WRONLY + "NOTE_FFOR", // https://pkg.go.dev/syscall?GOOS=darwin#NOTE_FFOR + "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA", // https://pkg.go.dev/crypto/tls#TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", // https://pkg.go.dev/crypto/tls#TLS_RSA_WITH_3DES_EDE_CBC_SHA ], ignore_words: &[], },