Skip to content

Commit

Permalink
docs(cli): Add comments to file-type specific ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
not-my-profile committed Aug 8, 2023
1 parent fa39bca commit 5dbe094
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions crates/typos-cli/src/file_type_specifics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,38 @@ pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
(
"py",
StaticDictConfig {
ignore_idents: &["NDArray"],
ignore_idents: &[
"NDArray", // numpy.typing.NDArray
],
ignore_words: &[],
},
),
(
"rust",
StaticDictConfig {
ignore_idents: &["flate2"],
ignore_words: &["ser"],
ignore_idents: &[
"flate2", // https://crates.io/crates/flate2
],
ignore_words: &[
"ser", // serde::ser, serde_json::ser, etc.
],
},
),
(
"vim",
StaticDictConfig {
ignore_idents: &["windo"],
ignore_idents: &[
"windo", // https://vimdoc.sourceforge.net/htmldoc/windows.html#:windo
],
ignore_words: &[],
},
),
(
"vimscript",
StaticDictConfig {
ignore_idents: &["windo"],
ignore_idents: &[
"windo", // https://vimdoc.sourceforge.net/htmldoc/windows.html#:windo
],
ignore_words: &[],
},
),
Expand Down

0 comments on commit 5dbe094

Please sign in to comment.