test: Demonstrate bad config bug

This commit is contained in:
Ed Page 2023-12-08 12:13:53 -06:00
parent 8dec26e3c6
commit 632b256901
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,9 @@
[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,18 @@
bin.name = "typos"
status.code = 2
stdin = ""
stdout = """
error: `hello` should be `goodbye`
--> ./file.ignore:1:1
|
1 | hello
| ^^^^^
|
error: `hello` should be `goodbye`
--> ./file.fail:1:1
|
1 | hello
| ^^^^^
|
"""
stderr = ""