From 0e8148fbbdfdf4412219b962474ebd9672c6bc24 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 16 Sep 2024 11:40:31 -0400 Subject: [PATCH] test(cli): Show inverted extend-exclude behavior --- .../tests/cmd/extend-exclude-inverted.in/_typos.toml | 12 ++++++++++++ .../cmd/extend-exclude-inverted.in/checked/file.txt | 2 ++ .../tests/cmd/extend-exclude-inverted.in/file.txt | 2 ++ .../extend-exclude-inverted.in/unchecked/file.txt | 2 ++ .../typos-cli/tests/cmd/extend-exclude-inverted.toml | 4 ++++ 5 files changed, 22 insertions(+) create mode 100644 crates/typos-cli/tests/cmd/extend-exclude-inverted.in/_typos.toml create mode 100644 crates/typos-cli/tests/cmd/extend-exclude-inverted.in/checked/file.txt create mode 100644 crates/typos-cli/tests/cmd/extend-exclude-inverted.in/file.txt create mode 100644 crates/typos-cli/tests/cmd/extend-exclude-inverted.in/unchecked/file.txt create mode 100644 crates/typos-cli/tests/cmd/extend-exclude-inverted.toml diff --git a/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/_typos.toml b/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/_typos.toml new file mode 100644 index 0000000..6e5c8fd --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/_typos.toml @@ -0,0 +1,12 @@ +[files] +extend-exclude = [ + "*", + "!checked/", + "!checked/**", +] +ignore-hidden = true +ignore-files = true +ignore-dot = true +ignore-vcs = true +ignore-global = true +ignore-parent = true diff --git a/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/checked/file.txt b/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/checked/file.txt new file mode 100644 index 0000000..e7cbd35 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/checked/file.txt @@ -0,0 +1,2 @@ +hte + diff --git a/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/file.txt b/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/file.txt new file mode 100644 index 0000000..e7cbd35 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/file.txt @@ -0,0 +1,2 @@ +hte + diff --git a/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/unchecked/file.txt b/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/unchecked/file.txt new file mode 100644 index 0000000..e7cbd35 --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-exclude-inverted.in/unchecked/file.txt @@ -0,0 +1,2 @@ +hte + diff --git a/crates/typos-cli/tests/cmd/extend-exclude-inverted.toml b/crates/typos-cli/tests/cmd/extend-exclude-inverted.toml new file mode 100644 index 0000000..324f41d --- /dev/null +++ b/crates/typos-cli/tests/cmd/extend-exclude-inverted.toml @@ -0,0 +1,4 @@ +bin.name = "typos" +stdin = "" +stdout = "" +stderr = ""