Skip to content

Commit

Permalink
Add initial test preparing "--force-exclude"
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Oct 9, 2023
1 parent 32c1731 commit 442b119
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/typos-cli/tests/cmd/force-exclude.in/_typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[files]
extend-exclude = ["file.ignore"]

[default.extend-identifiers]
hello = "goodbye"
1 change: 1 addition & 0 deletions crates/typos-cli/tests/cmd/force-exclude.in/file.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello
13 changes: 13 additions & 0 deletions crates/typos-cli/tests/cmd/force-exclude.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
bin.name = "typos"
args = "file.ignore"
stdin = ""
stdout = """
error: `hello` should be `goodbye`
--> file.ignore:1:1
|
1 | hello
| ^^^^^
|
"""
stderr = ""
status.code = 2

0 comments on commit 442b119

Please sign in to comment.