Skip to content

Commit 21dba19

Browse files
committed
test: Demo line-ignore behavior
1 parent c9d894f commit 21dba19

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[default]
2+
extend-ignore-re = ["(?Rm)^.*# spellchecker:disable-line$"]
3+
4+
[default.extend-identifiers]
5+
hello = "goodbye"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
hello
2+
hello # spellchecker:disable-line
3+
hello
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
bin.name = "typos"
2+
stdin = ""
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:3:1
12+
|
13+
3 | hello
14+
| ^^^^^
15+
|
16+
"""
17+
stderr = ""
18+
status.code = 2

0 commit comments

Comments
 (0)