Skip to content

Commit

Permalink
test: Demonstrate bad config bug
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 8, 2023
1 parent 8dec26e commit 632b256
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[default.extend-identifiers]
hello = "goodbye"

[type.fail]
extend-glob = ["*.fail"]

[type.ignore]
extend-glob = ["*.ignore"]
extend-ignore-identifiers-re = ["(he.*"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello
18 changes: 18 additions & 0 deletions crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.toml
Original file line number Diff line number Diff line change
@@ -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 = ""

0 comments on commit 632b256

Please sign in to comment.