mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -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
|
||||
onoly,only
|
||||
onot,note,not
|
||||
ons,owns
|
||||
onsalught,onslaught
|
||||
onself,oneself
|
||||
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("oly"),
|
||||
dictgen::InsensitiveStr::Ascii("ot"),
|
||||
dictgen::InsensitiveStr::Ascii("s"),
|
||||
dictgen::InsensitiveStr::Ascii("salught"),
|
||||
dictgen::InsensitiveStr::Ascii("self"),
|
||||
dictgen::InsensitiveStr::Ascii("servation"),
|
||||
|
@ -66511,7 +66510,6 @@ pub static WORD_ON_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg
|
|||
&["omniscient"],
|
||||
&["only"],
|
||||
&["note", "not"],
|
||||
&["owns"],
|
||||
&["onslaught"],
|
||||
&["oneself"],
|
||||
&["conservation", "observation"],
|
||||
|
|
Loading…
Reference in a new issue