From 107f99d4c62d4024eb2e5df28c72bcbe1ac9cb7f Mon Sep 17 00:00:00 2001 From: SOFe Date: Mon, 27 May 2024 11:53:33 +0800 Subject: [PATCH] fix(dict): Ignore flate for Go files Signed-off-by: SOFe --- crates/typos-cli/src/file_type_specifics.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/typos-cli/src/file_type_specifics.rs b/crates/typos-cli/src/file_type_specifics.rs index 49f6df0..8584bae 100644 --- a/crates/typos-cli/src/file_type_specifics.rs +++ b/crates/typos-cli/src/file_type_specifics.rs @@ -16,6 +16,15 @@ pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[ ignore_words: &[], }, ), + ( + "go", + StaticDictConfig { + ignore_idents: &[ + "flate", // https://pkg.go.dev/compress/flate + ], + ignore_words: &[], + }, + ), ( "jl", StaticDictConfig {