diff --git a/crates/typos-cli/src/file_type_specifics.rs b/crates/typos-cli/src/file_type_specifics.rs index 273a250..3a69e0f 100644 --- a/crates/typos-cli/src/file_type_specifics.rs +++ b/crates/typos-cli/src/file_type_specifics.rs @@ -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 { diff --git a/crates/typos-cli/tests/cmd/false-positives.toml b/crates/typos-cli/tests/cmd/false-positives.toml index 41e44a3..324f41d 100644 --- a/crates/typos-cli/tests/cmd/false-positives.toml +++ b/crates/typos-cli/tests/cmd/false-positives.toml @@ -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