Skip to content

Commit

Permalink
fix(dict): ignore flate for Go files
Browse files Browse the repository at this point in the history
Signed-off-by: SOFe <sofe2038@gmail.com>
  • Loading branch information
SOF3 committed May 27, 2024
1 parent 27ba976 commit 0b5f137
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/typos-cli/src/file_type_specifics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
ignore_words: &[],
},
),
(
"go",
StaticDictConfig {
ignore_idents: &[
"flate", // https://pkg.go.dev/compress/flate
],
ignore_words: &[],
},
),
];

pub(crate) struct StaticDictConfig {
Expand Down

0 comments on commit 0b5f137

Please sign in to comment.