mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 10:31:02 -05:00
Merge pull request #722 from epage/addons
fix(dict): Dont correct add-ons
This commit is contained in:
commit
190bb75758
6 changed files with 15 additions and 3 deletions
7
crates/typos-cli/tests/cmd/false-positives.in/README.md
Normal file
7
crates/typos-cli/tests/cmd/false-positives.in/README.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
add-ons should not be corrected to add-owns
|
||||||
|
|
||||||
|
git glossary has both commitish and committish, so don't correct them
|
||||||
|
|
||||||
|
HTTP_REFERER is a valid HTTP header field
|
||||||
|
|
||||||
|
It should be reasonable to talk about `<thead>`
|
1
crates/typos-cli/tests/cmd/false-positives.in/sample.py
Normal file
1
crates/typos-cli/tests/cmd/false-positives.in/sample.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
from numpy.typing import NDArray # should work
|
3
crates/typos-cli/tests/cmd/false-positives.in/sample.rs
Normal file
3
crates/typos-cli/tests/cmd/false-positives.in/sample.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
use serde::ser;
|
||||||
|
|
||||||
|
use flate2::*;
|
4
crates/typos-cli/tests/cmd/false-positives.toml
Normal file
4
crates/typos-cli/tests/cmd/false-positives.toml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
bin.name = "typos"
|
||||||
|
stdin = ""
|
||||||
|
stdout = ""
|
||||||
|
stderr = ""
|
1
crates/typos-dict/assets/words.csv
vendored
1
crates/typos-dict/assets/words.csv
vendored
|
@ -33765,7 +33765,6 @@ onmipotent,omnipotent
|
||||||
onmiscient,omniscient
|
onmiscient,omniscient
|
||||||
onoly,only
|
onoly,only
|
||||||
onot,note,not
|
onot,note,not
|
||||||
ons,owns
|
|
||||||
onsalught,onslaught
|
onsalught,onslaught
|
||||||
onself,oneself
|
onself,oneself
|
||||||
onservation,conservation,observation
|
onservation,conservation,observation
|
||||||
|
|
Can't render this file because it is too large.
|
|
@ -66466,7 +66466,6 @@ pub static WORD_ON_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
||||||
dictgen::InsensitiveStr::Ascii("miscient"),
|
dictgen::InsensitiveStr::Ascii("miscient"),
|
||||||
dictgen::InsensitiveStr::Ascii("oly"),
|
dictgen::InsensitiveStr::Ascii("oly"),
|
||||||
dictgen::InsensitiveStr::Ascii("ot"),
|
dictgen::InsensitiveStr::Ascii("ot"),
|
||||||
dictgen::InsensitiveStr::Ascii("s"),
|
|
||||||
dictgen::InsensitiveStr::Ascii("salught"),
|
dictgen::InsensitiveStr::Ascii("salught"),
|
||||||
dictgen::InsensitiveStr::Ascii("self"),
|
dictgen::InsensitiveStr::Ascii("self"),
|
||||||
dictgen::InsensitiveStr::Ascii("servation"),
|
dictgen::InsensitiveStr::Ascii("servation"),
|
||||||
|
@ -66511,7 +66510,6 @@ pub static WORD_ON_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
||||||
&["omniscient"],
|
&["omniscient"],
|
||||||
&["only"],
|
&["only"],
|
||||||
&["note", "not"],
|
&["note", "not"],
|
||||||
&["owns"],
|
|
||||||
&["onslaught"],
|
&["onslaught"],
|
||||||
&["oneself"],
|
&["oneself"],
|
||||||
&["conservation", "observation"],
|
&["conservation", "observation"],
|
||||||
|
|
Loading…
Reference in a new issue