test(cli): Show extend-ignore-identifiers-re bug

This commit is contained in:
Ed Page 2023-03-17 23:45:54 -05:00
parent fc7dfba01b
commit 2ee6ef4654
4 changed files with 32 additions and 0 deletions

View file

@ -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.*"]

View file

@ -0,0 +1 @@
hello

View 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 = ""