Skip to content

Commit a9afeef

Browse files
committed
test(cli): Show extend-ignore on file names
1 parent 5bd389d commit a9afeef

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[default]
2-
extend-ignore-re = ["`.*`"]
2+
extend-ignore-re = ["`.*`", "olt-manager"]
33

44
[default.extend-identifiers]
55
hello = "goodbye"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
One olt two
2+
One manager two
3+
One olt-manager two

crates/typos-cli/tests/cmd/extend-ignore-re.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
bin.name = "typos"
2+
args = "-j1"
23
stdin = ""
34
stdout = """
45
error: `hello` should be `goodbye`
@@ -7,6 +8,14 @@ error: `hello` should be `goodbye`
78
1 | hello `hello`
89
| ^^^^^
910
|
11+
error: `olt` should be `old`
12+
--> ./olt-manager.php:1
13+
error: `olt` should be `old`
14+
--> ./olt-manager.php:1:5
15+
|
16+
1 | One olt two
17+
| ^^^
18+
|
1019
"""
1120
stderr = ""
1221
status.code = 2

0 commit comments

Comments
 (0)