Skip to content

Commit

Permalink
test(cli): Reproduce force-exclude bug
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Nov 6, 2023
1 parent 0d04ce9 commit edfb79f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/typos-cli/tests/cmd/force-exclude.in/_typos.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[files]
extend-exclude = ["file.ignore"]
extend-exclude = ["file.ignore", "ignore"]

[default.extend-identifiers]
hello = "goodbye"
1 change: 1 addition & 0 deletions crates/typos-cli/tests/cmd/force-exclude.in/ignore/file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello
19 changes: 16 additions & 3 deletions crates/typos-cli/tests/cmd/force-exclude.toml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit edfb79f

Please sign in to comment.