test(cli): Show extend-ignore on file names

This commit is contained in:
Ed Page 2023-12-27 09:56:30 -06:00
parent 5bd389de71
commit a9afeef275
3 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,5 @@
[default]
extend-ignore-re = ["`.*`"]
extend-ignore-re = ["`.*`", "olt-manager"]
[default.extend-identifiers]
hello = "goodbye"

View file

@ -0,0 +1,3 @@
One olt two
One manager two
One olt-manager two

View file

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