mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
test: Demonstrate bad config bug
This commit is contained in:
parent
8dec26e3c6
commit
632b256901
4 changed files with 29 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
||||||
|
[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
|
|
@ -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 = ""
|
Loading…
Reference in a new issue