diff --git a/crates/typos-cli/tests/cmd/extend-ignore-re.in/_typos.toml b/crates/typos-cli/tests/cmd/extend-ignore-re.in/_typos.toml index e1192cb4b..482e022ae 100644 --- a/crates/typos-cli/tests/cmd/extend-ignore-re.in/_typos.toml +++ b/crates/typos-cli/tests/cmd/extend-ignore-re.in/_typos.toml @@ -1,5 +1,5 @@ [default] -extend-ignore-re = ["`.*`"] +extend-ignore-re = ["`.*`", "olt-manager"] [default.extend-identifiers] hello = "goodbye" diff --git a/crates/typos-cli/tests/cmd/extend-ignore-re.in/olt-manager.php b/crates/typos-cli/tests/cmd/extend-ignore-re.in/olt-manager.php new file mode 100644 index 000000000..f93d225a3 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-ignore-re.in/olt-manager.php @@ -0,0 +1,3 @@ +One olt two +One manager two +One olt-manager two diff --git a/crates/typos-cli/tests/cmd/extend-ignore-re.toml b/crates/typos-cli/tests/cmd/extend-ignore-re.toml index af1b948b2..050641f91 100644 --- a/crates/typos-cli/tests/cmd/extend-ignore-re.toml +++ b/crates/typos-cli/tests/cmd/extend-ignore-re.toml @@ -1,4 +1,5 @@ bin.name = "typos" +args = "-j1" stdin = "" stdout = """ error: `hello` should be `goodbye` @@ -7,6 +8,14 @@ error: `hello` should be `goodbye` 1 | hello `hello` | ^^^^^ | +error: `olt` should be `old` + --> ./olt-manager.php:1 +error: `olt` should be `old` + --> ./olt-manager.php:1:5 + | +1 | One olt two + | ^^^ + | """ stderr = "" status.code = 2