mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-18 01:45:12 +02:00
test(cli): Reproduce force-exclude bug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[files]
|
||||
extend-exclude = ["file.ignore"]
|
||||
extend-exclude = ["file.ignore", "ignore"]
|
||||
|
||||
[default.extend-identifiers]
|
||||
hello = "goodbye"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
hello
|
||||
@@ -0,0 +1 @@
|
||||
hello
|
||||
@@ -1,6 +1,19 @@
|
||||
bin.name = "typos"
|
||||
args = "file.ignore --force-exclude"
|
||||
args = "file.ignore ignore/file parent/ignore/file --force-exclude"
|
||||
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 = ""
|
||||
status.code = 0
|
||||
status.code = 2
|
||||
|
||||
Reference in New Issue
Block a user