diff --git a/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/_typos.toml b/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/_typos.toml new file mode 100644 index 0000000..73692cb --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/_typos.toml @@ -0,0 +1,9 @@ +[default.extend-identifiers] +hello = "goodbye" + +[type.fail] +extend-glob = ["*.fail"] + +[type.ignore] +extend-glob = ["*.ignore"] +extend-ignore-identifiers-re = ["(he.*"] diff --git a/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/file.fail b/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/file.fail new file mode 100644 index 0000000..ce01362 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/file.fail @@ -0,0 +1 @@ +hello diff --git a/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/file.ignore b/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/file.ignore new file mode 100644 index 0000000..ce01362 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.in/file.ignore @@ -0,0 +1 @@ +hello diff --git a/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.toml b/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.toml new file mode 100644 index 0000000..52a5297 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-ignore-identifiers-re-bad.toml @@ -0,0 +1,18 @@ +bin.name = "typos" +status.code = 2 +stdin = "" +stdout = """ +error: `hello` should be `goodbye` + --> ./file.ignore:1:1 + | +1 | hello + | ^^^^^ + | +error: `hello` should be `goodbye` + --> ./file.fail:1:1 + | +1 | hello + | ^^^^^ + | +""" +stderr = ""