mirror of
https://github.com/crate-ci/typos.git
synced 2025-02-13 00:36:04 -05:00
test(cli): Show extend-ignore-identifiers-re bug
This commit is contained in:
parent
fc7dfba01b
commit
2ee6ef4654
4 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
||||||
|
[files]
|
||||||
|
extend-exclude = ["_typos.toml"]
|
||||||
|
|
||||||
|
[default.extend-identifiers]
|
||||||
|
hello = "goodbye"
|
||||||
|
|
||||||
|
[type.fail]
|
||||||
|
extend-glob = ["*.fail"]
|
||||||
|
|
||||||
|
[type.ignore]
|
||||||
|
extend-glob = ["*.ignore"]
|
||||||
|
extend-ignore-identifiers-re = ["he.*"]
|
|
@ -0,0 +1 @@
|
||||||
|
hello
|
|
@ -0,0 +1 @@
|
||||||
|
hello
|
18
crates/typos-cli/tests/cmd/extend-ignore-identifiers-re.toml
Normal file
18
crates/typos-cli/tests/cmd/extend-ignore-identifiers-re.toml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
bin.name = "typos"
|
||||||
|
status.code = 2
|
||||||
|
stdin = ""
|
||||||
|
stdout = """
|
||||||
|
error: `hello` should be `goodbye`
|
||||||
|
--> ./file.fail:1:1
|
||||||
|
|
|
||||||
|
1 | hello
|
||||||
|
| ^^^^^
|
||||||
|
|
|
||||||
|
error: `hello` should be `goodbye`
|
||||||
|
--> ./file.ignore:1:1
|
||||||
|
|
|
||||||
|
1 | hello
|
||||||
|
| ^^^^^
|
||||||
|
|
|
||||||
|
"""
|
||||||
|
stderr = ""
|
Loading…
Add table
Reference in a new issue