mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 10:31:02 -05:00
test: Baseline for generic ignore
This commit is contained in:
parent
a1a601195e
commit
9d376417a0
3 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
[files]
|
||||||
|
extend-exclude = ["_typos.toml"]
|
||||||
|
|
||||||
|
[default.extend-identifiers]
|
||||||
|
hello = "goodbye"
|
|
@ -0,0 +1 @@
|
||||||
|
hello `hello`
|
18
crates/typos-cli/tests/cmd/extend-ignore-re.toml
Normal file
18
crates/typos-cli/tests/cmd/extend-ignore-re.toml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
bin.name = "typos"
|
||||||
|
stdin = ""
|
||||||
|
stdout = """
|
||||||
|
error: `hello` should be `goodbye`
|
||||||
|
--> ./file.ignore:1:1
|
||||||
|
|
|
||||||
|
1 | hello `hello`
|
||||||
|
| ^^^^^
|
||||||
|
|
|
||||||
|
error: `hello` should be `goodbye`
|
||||||
|
--> ./file.ignore:1:8
|
||||||
|
|
|
||||||
|
1 | hello `hello`
|
||||||
|
| ^^^^^
|
||||||
|
|
|
||||||
|
"""
|
||||||
|
stderr = ""
|
||||||
|
status.code = 2
|
Loading…
Reference in a new issue