fix(dict): Dont correct common Julia terms

This commit is contained in:
Ed Page 2023-10-16 20:51:12 -05:00
parent a640285093
commit b2685877d2
2 changed files with 13 additions and 27 deletions

View file

@ -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 {

View file

@ -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