mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-18 09:55:12 +02:00
test: Demo line-ignore behavior
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
[default]
|
||||
extend-ignore-re = ["(?Rm)^.*# spellchecker:disable-line$"]
|
||||
|
||||
[default.extend-identifiers]
|
||||
hello = "goodbye"
|
||||
@@ -0,0 +1,3 @@
|
||||
hello
|
||||
hello # spellchecker:disable-line
|
||||
hello
|
||||
@@ -0,0 +1,18 @@
|
||||
bin.name = "typos"
|
||||
stdin = ""
|
||||
stdout = """
|
||||
error: `hello` should be `goodbye`
|
||||
--> ./file.ignore:1:1
|
||||
|
|
||||
1 | hello
|
||||
| ^^^^^
|
||||
|
|
||||
error: `hello` should be `goodbye`
|
||||
--> ./file.ignore:3:1
|
||||
|
|
||||
3 | hello
|
||||
| ^^^^^
|
||||
|
|
||||
"""
|
||||
stderr = ""
|
||||
status.code = 2
|
||||
Reference in New Issue
Block a user