mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
Merge pull request #856 from epage/julia
fix(dict): Add Julia-specific dictionary
This commit is contained in:
commit
0d5e460b7c
7 changed files with 22 additions and 5 deletions
|
@ -112,7 +112,6 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
|
|||
("js", &["*.js", "*.jsx", "*.vue"]),
|
||||
("json", &["*.json"]),
|
||||
("jsonl", &["*.jsonl"]),
|
||||
("julia", &["*.jl"]),
|
||||
("jupyter", &["*.ipynb", "*.jpynb"]),
|
||||
("k", &["*.k"]),
|
||||
("kotlin", &["*.kt", "*.kts"]),
|
||||
|
@ -145,7 +144,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
|
|||
"OFL-*[0-9]*",
|
||||
]),
|
||||
("lilypond", &["*.ly", "*.ily"]),
|
||||
("lisp", &["*.el", "*.jl", "*.lisp", "*.lsp", "*.sc", "*.scm"]),
|
||||
("lisp", &["*.el", "*.lisp", "*.lsp", "*.sc", "*.scm"]),
|
||||
("lock", &["*.lock", "package-lock.json", "requirements.txt", "go.sum", "pnpm-lock.yaml"]),
|
||||
("log", &["*.log"]),
|
||||
("lua", &["*.lua"]),
|
||||
|
|
|
@ -16,6 +16,18 @@ pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
|
|||
ignore_words: &[],
|
||||
},
|
||||
),
|
||||
(
|
||||
"jl",
|
||||
StaticDictConfig {
|
||||
ignore_idents: &[],
|
||||
ignore_words: &[
|
||||
"egal", // name for `===` operator
|
||||
"egals", // name for `===` operator
|
||||
"modul", // stand-in for `module` when needing to avoid the keyword
|
||||
"usig", // stand-in for `using` when needing to avoid the keyword
|
||||
],
|
||||
},
|
||||
),
|
||||
(
|
||||
"man",
|
||||
StaticDictConfig {
|
||||
|
|
|
@ -5,3 +5,5 @@ 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>`
|
||||
|
||||
SHTTP is a protocol
|
||||
|
|
6
crates/typos-cli/tests/cmd/false-positives.in/sample.jl
Normal file
6
crates/typos-cli/tests/cmd/false-positives.in/sample.jl
Normal file
|
@ -0,0 +1,6 @@
|
|||
# one egal: ===
|
||||
# three egals: === === ===
|
||||
|
||||
# When we need to refer to keywords without saying them
|
||||
var modul = "hello";
|
||||
var usig = "hello";
|
1
crates/typos-dict/assets/allowed.csv
vendored
1
crates/typos-dict/assets/allowed.csv
vendored
|
@ -18,3 +18,4 @@ contiguities,plural of contiguity
|
|||
bellow,valid word and not just a typo of `below`
|
||||
revered,valid word and not just a typoe of `reversed`
|
||||
recuse,valid word despite maybe being a typo of recurse
|
||||
shttp,also a protocol
|
||||
|
|
|
1
crates/typos-dict/assets/words.csv
vendored
1
crates/typos-dict/assets/words.csv
vendored
|
@ -52334,7 +52334,6 @@ shtopped,stopped,shopped
|
|||
shtoppes,stops,shops
|
||||
shtopping,stopping,shopping
|
||||
shtops,stops,shops
|
||||
shttp,https
|
||||
shudown,shutdown
|
||||
shufle,shuffle
|
||||
shuld,should
|
||||
|
|
Can't render this file because it is too large.
|
|
@ -37383,7 +37383,6 @@ pub static WORD_SHT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
|
|||
dictgen::InsensitiveStr::Ascii("oppes"),
|
||||
dictgen::InsensitiveStr::Ascii("opping"),
|
||||
dictgen::InsensitiveStr::Ascii("ops"),
|
||||
dictgen::InsensitiveStr::Ascii("tp"),
|
||||
],
|
||||
values: &[
|
||||
&["shitless"],
|
||||
|
@ -37396,7 +37395,6 @@ pub static WORD_SHT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
|
|||
&["stops", "shops"],
|
||||
&["stopping", "shopping"],
|
||||
&["stops", "shops"],
|
||||
&["https"],
|
||||
],
|
||||
range: 2..=6,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue