-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #882 from epage/regex
fix(config): Propagate validation errors
- Loading branch information
Showing
7 changed files
with
47 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/_typos.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.*"] |
1 change: 1 addition & 0 deletions
1
crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/file.fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hello |
1 change: 1 addition & 0 deletions
1
crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/file.ignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hello |
15 changes: 15 additions & 0 deletions
15
crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
bin.name = "typos" | ||
status.code = 78 | ||
stdin = "" | ||
stdout = "" | ||
stderr = """ | ||
TOML parse error at line 7, column 1 | ||
| | ||
7 | [type.ignore] | ||
| ^[..] | ||
regex parse error: | ||
(he.* | ||
^ | ||
error: unclosed group | ||
""" |