From 0b05c8eab57a3add77ccbcb87de636201fa42ae1 Mon Sep 17 00:00:00 2001 From: Knut Andreas Meyer Date: Fri, 5 Jan 2024 22:57:56 +0100 Subject: [PATCH 1/4] Add spellchecking action --- .github/workflows/SpellCheck.yml | 13 +++++++++++++ .typos.toml | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/SpellCheck.yml create mode 100644 .typos.toml diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml new file mode 100644 index 0000000000..2daa10f085 --- /dev/null +++ b/.github/workflows/SpellCheck.yml @@ -0,0 +1,13 @@ +name: Spell Check + +on: [pull_request] + +jobs: + typos-check: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v3 + - name: Check spelling + uses: crate-ci/typos@v1.16.3 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000000..cf8a3ba116 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[files] +extend-exclude = ["*.svg", "*.toml"] From df64049deebdea3ab8fb80fe6540c2c45b96a2b2 Mon Sep 17 00:00:00 2001 From: Knut Andreas Meyer Date: Fri, 5 Jan 2024 23:08:00 +0100 Subject: [PATCH 2/4] Try excluding wrongly flagged abbreviations --- .typos.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.typos.toml b/.typos.toml index cf8a3ba116..95194ecdc3 100644 --- a/.typos.toml +++ b/.typos.toml @@ -1,2 +1,7 @@ [files] extend-exclude = ["*.svg", "*.toml"] + +[default.extend-words] +ue = "ue" +ba = "ba" +nd = "nd" From fae27e3427ff02291c59b9d14c477ffb017ebdd3 Mon Sep 17 00:00:00 2001 From: Knut Andreas Meyer Date: Fri, 5 Jan 2024 23:12:07 +0100 Subject: [PATCH 3/4] Further exceptions --- .typos.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.typos.toml b/.typos.toml index 95194ecdc3..1f1784a01b 100644 --- a/.typos.toml +++ b/.typos.toml @@ -5,3 +5,5 @@ extend-exclude = ["*.svg", "*.toml"] ue = "ue" ba = "ba" nd = "nd" +Numer. = "Numer." +Secrest = "Secrest" \ No newline at end of file From 63a25e988e99d8a00192e20dfab76d277d4bcce7 Mon Sep 17 00:00:00 2001 From: Knut Andreas Meyer Date: Fri, 5 Jan 2024 23:17:29 +0100 Subject: [PATCH 4/4] Not allowed to use point --- .typos.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.typos.toml b/.typos.toml index 1f1784a01b..35922763d1 100644 --- a/.typos.toml +++ b/.typos.toml @@ -5,5 +5,5 @@ extend-exclude = ["*.svg", "*.toml"] ue = "ue" ba = "ba" nd = "nd" -Numer. = "Numer." +Numer = "Numer" Secrest = "Secrest" \ No newline at end of file