mirror of
https://github.com/crate-ci/typos.git
synced 2025-01-09 08:14:53 -05:00
test(cli): Reproduce force-exclude bug
This commit is contained in:
parent
0d04ce91a7
commit
edfb79f537
4 changed files with 19 additions and 4 deletions
|
@ -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"
|
||||||
|
|
1
crates/typos-cli/tests/cmd/force-exclude.in/ignore/file
Normal file
1
crates/typos-cli/tests/cmd/force-exclude.in/ignore/file
Normal file
|
@ -0,0 +1 @@
|
||||||
|
hello
|
|
@ -0,0 +1 @@
|
||||||
|
hello
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue