diff --git a/crates/typos-cli/tests/cmd/false-positives.in/README.md b/crates/typos-cli/tests/cmd/false-positives.in/README.md new file mode 100644 index 0000000..5871723 --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/README.md @@ -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 `` diff --git a/crates/typos-cli/tests/cmd/false-positives.in/sample.py b/crates/typos-cli/tests/cmd/false-positives.in/sample.py new file mode 100644 index 0000000..dcf674d --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/sample.py @@ -0,0 +1 @@ +from numpy.typing import NDArray # should work diff --git a/crates/typos-cli/tests/cmd/false-positives.in/sample.rs b/crates/typos-cli/tests/cmd/false-positives.in/sample.rs new file mode 100644 index 0000000..de110f9 --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/sample.rs @@ -0,0 +1,3 @@ +use serde::ser; + +use flate2::*; diff --git a/crates/typos-cli/tests/cmd/false-positives.toml b/crates/typos-cli/tests/cmd/false-positives.toml new file mode 100644 index 0000000..324f41d --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.toml @@ -0,0 +1,4 @@ +bin.name = "typos" +stdin = "" +stdout = "" +stderr = "" diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 9ea43d6..b8b7253 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -33765,7 +33765,6 @@ onmipotent,omnipotent onmiscient,omniscient onoly,only onot,note,not -ons,owns onsalught,onslaught onself,oneself onservation,conservation,observation diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 37b1815..7b3bbe9 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -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"],