mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
fix(dict): Dont correct common Julia terms
This commit is contained in:
parent
a640285093
commit
b2685877d2
2 changed files with 13 additions and 27 deletions
|
@ -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 {
|
||||
|
|
|
@ -1,30 +1,4 @@
|
|||
bin.name = "typos"
|
||||
stdin = ""
|
||||
stdout = """
|
||||
error: `egal` should be `equal`
|
||||
--> ./sample.jl:1:7
|
||||
|
|
||||
1 | # one egal: ===
|
||||
| ^^^^
|
||||
|
|
||||
error: `egals` should be `equals`
|
||||
--> ./sample.jl:2:9
|
||||
|
|
||||
2 | # three egals: === === ===
|
||||
| ^^^^^
|
||||
|
|
||||
error: `modul` should be `module`
|
||||
--> ./sample.jl:5:5
|
||||
|
|
||||
5 | var modul = \"hello\";
|
||||
| ^^^^^
|
||||
|
|
||||
error: `usig` should be `using`
|
||||
--> ./sample.jl:6:5
|
||||
|
|
||||
6 | var usig = \"hello\";
|
||||
| ^^^^
|
||||
|
|
||||
"""
|
||||
stdout = ""
|
||||
stderr = ""
|
||||
status.code = 2
|
||||
|
|
Loading…
Reference in a new issue