mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
Add initial test preparing "--force-exclude"
This commit is contained in:
parent
32c1731302
commit
442b1199da
3 changed files with 19 additions and 0 deletions
5
crates/typos-cli/tests/cmd/force-exclude.in/_typos.toml
Normal file
5
crates/typos-cli/tests/cmd/force-exclude.in/_typos.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
[files]
|
||||
extend-exclude = ["file.ignore"]
|
||||
|
||||
[default.extend-identifiers]
|
||||
hello = "goodbye"
|
1
crates/typos-cli/tests/cmd/force-exclude.in/file.ignore
Normal file
1
crates/typos-cli/tests/cmd/force-exclude.in/file.ignore
Normal file
|
@ -0,0 +1 @@
|
|||
hello
|
13
crates/typos-cli/tests/cmd/force-exclude.toml
Normal file
13
crates/typos-cli/tests/cmd/force-exclude.toml
Normal file
|
@ -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
|
Loading…
Reference in a new issue