Skip to content

Commit 8b57110

Browse files
committed
test(cli): Verify block-ignores via regex
1 parent c4bcca1 commit 8b57110

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[default]
2+
extend-ignore-re = ["#\\s*spellchecker:off\\s*\\n.*\\n\\s*#\\s*spellchecker:on"]
3+
4+
[default.extend-identifiers]
5+
hello = "goodbye"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
hello
2+
# spellchecker:off
3+
hello
4+
# spellchecker:on
5+
hello
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
bin.name = "typos"
2+
stdin = "--sort"
3+
stdout = """
4+
error: `hello` should be `goodbye`
5+
--> ./file.ignore:1:1
6+
|
7+
1 | hello
8+
| ^^^^^
9+
|
10+
error: `hello` should be `goodbye`
11+
--> ./file.ignore:5:1
12+
|
13+
5 | hello
14+
| ^^^^^
15+
|
16+
"""
17+
stderr = ""
18+
status.code = 2

0 commit comments

Comments
 (0)