Skip to content

Commit

Permalink
test(cli): Show extend-ignore on file names
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 27, 2023
1 parent 5bd389d commit a9afeef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/typos-cli/tests/cmd/extend-ignore-re.in/_typos.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[default]
extend-ignore-re = ["`.*`"]
extend-ignore-re = ["`.*`", "olt-manager"]

[default.extend-identifiers]
hello = "goodbye"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
One olt two
One manager two
One olt-manager two
9 changes: 9 additions & 0 deletions crates/typos-cli/tests/cmd/extend-ignore-re.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bin.name = "typos"
args = "-j1"
stdin = ""
stdout = """
error: `hello` should be `goodbye`
Expand All @@ -7,6 +8,14 @@ error: `hello` should be `goodbye`
1 | hello `hello`
| ^^^^^
|
error: `olt` should be `old`
--> ./olt-manager.php:1
error: `olt` should be `old`
--> ./olt-manager.php:1:5
|
1 | One olt two
| ^^^
|
"""
stderr = ""
status.code = 2

0 comments on commit a9afeef

Please sign in to comment.