test(cli): Reproduce force-exclude bug

This commit is contained in:
Ed Page 2023-11-06 11:20:21 -06:00
parent 0d04ce91a7
commit edfb79f537
4 changed files with 19 additions and 4 deletions

View file

@ -1,5 +1,5 @@
[files] [files]
extend-exclude = ["file.ignore"] extend-exclude = ["file.ignore", "ignore"]
[default.extend-identifiers] [default.extend-identifiers]
hello = "goodbye" hello = "goodbye"

View file

@ -0,0 +1 @@
hello

View file

@ -0,0 +1 @@
hello

View file

@ -1,6 +1,19 @@
bin.name = "typos" bin.name = "typos"
args = "file.ignore --force-exclude" args = "file.ignore ignore/file parent/ignore/file --force-exclude"
stdin = "" stdin = ""
stdout = "" stdout = """
error: `hello` should be `goodbye`
--> ignore/file:1:1
|
1 | hello
| ^^^^^
|
error: `hello` should be `goodbye`
--> parent/ignore/file:1:1
|
1 | hello
| ^^^^^
|
"""
stderr = "" stderr = ""
status.code = 0 status.code = 2