diff --git a/crates/typos-cli/tests/cmd/extend-ignore-re.in/_typos.toml b/crates/typos-cli/tests/cmd/extend-ignore-re.in/_typos.toml new file mode 100644 index 0000000..de98037 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-ignore-re.in/_typos.toml @@ -0,0 +1,5 @@ +[files] +extend-exclude = ["_typos.toml"] + +[default.extend-identifiers] +hello = "goodbye" diff --git a/crates/typos-cli/tests/cmd/extend-ignore-re.in/file.ignore b/crates/typos-cli/tests/cmd/extend-ignore-re.in/file.ignore new file mode 100644 index 0000000..b4cfe09 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-ignore-re.in/file.ignore @@ -0,0 +1 @@ +hello `hello` diff --git a/crates/typos-cli/tests/cmd/extend-ignore-re.toml b/crates/typos-cli/tests/cmd/extend-ignore-re.toml new file mode 100644 index 0000000..f87f083 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-ignore-re.toml @@ -0,0 +1,18 @@ +bin.name = "typos" +stdin = "" +stdout = """ +error: `hello` should be `goodbye` + --> ./file.ignore:1:1 + | +1 | hello `hello` + | ^^^^^ + | +error: `hello` should be `goodbye` + --> ./file.ignore:1:8 + | +1 | hello `hello` + | ^^^^^ + | +""" +stderr = "" +status.code = 2