mirror of
https://github.com/crate-ci/typos.git
synced 2025-01-09 00:04:49 -05:00
docs(cli): Add comments to file-type specific ignores
This commit is contained in:
parent
fa39bca152
commit
5dbe0948d3
1 changed files with 15 additions and 5 deletions
|
@ -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: &[],
|
||||
},
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue