diff --git a/crates/typos-cli/tests/cmd/force-exclude.in/_typos.toml b/crates/typos-cli/tests/cmd/force-exclude.in/_typos.toml index 434f5f6a2..9d14ee837 100644 --- a/crates/typos-cli/tests/cmd/force-exclude.in/_typos.toml +++ b/crates/typos-cli/tests/cmd/force-exclude.in/_typos.toml @@ -1,5 +1,5 @@ [files] -extend-exclude = ["file.ignore"] +extend-exclude = ["file.ignore", "ignore"] [default.extend-identifiers] hello = "goodbye" diff --git a/crates/typos-cli/tests/cmd/force-exclude.in/ignore/file b/crates/typos-cli/tests/cmd/force-exclude.in/ignore/file new file mode 100644 index 000000000..ce0136250 --- /dev/null +++ b/crates/typos-cli/tests/cmd/force-exclude.in/ignore/file @@ -0,0 +1 @@ +hello diff --git a/crates/typos-cli/tests/cmd/force-exclude.in/parent/ignore/file b/crates/typos-cli/tests/cmd/force-exclude.in/parent/ignore/file new file mode 100644 index 000000000..ce0136250 --- /dev/null +++ b/crates/typos-cli/tests/cmd/force-exclude.in/parent/ignore/file @@ -0,0 +1 @@ +hello diff --git a/crates/typos-cli/tests/cmd/force-exclude.toml b/crates/typos-cli/tests/cmd/force-exclude.toml index 863fe82ef..405c75dbd 100644 --- a/crates/typos-cli/tests/cmd/force-exclude.toml +++ b/crates/typos-cli/tests/cmd/force-exclude.toml @@ -1,6 +1,19 @@ bin.name = "typos" -args = "file.ignore --force-exclude" +args = "file.ignore ignore/file parent/ignore/file --force-exclude" stdin = "" -stdout = "" +stdout = """ +error: `hello` should be `goodbye` + --> ignore/file:1:1 + | +1 | hello + | ^^^^^ + | +error: `hello` should be `goodbye` + --> parent/ignore/file:1:1 + | +1 | hello + | ^^^^^ + | +""" stderr = "" -status.code = 0 +status.code = 2