From 88a20331e981cb566fccbc83c04e08ebda4d7680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Via=C4=8Das=C5=82a=C5=AD=20Chalikin?= Date: Tue, 17 Dec 2024 02:23:58 +0300 Subject: [PATCH] Add typos-action --- .github/workflows/typos.yml | 20 ++++++++++++++++++++ _typos.toml | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/typos.yml create mode 100644 _typos.toml diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 0000000000..3ba2fb3bfd --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,20 @@ +# Spell checker + +name: Typos Action + +permissions: + contents: read + +on: + pull_request: + branches: [master] + +jobs: + spelling: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v4 + - name: Spell Check Repo + uses: crate-ci/typos@v1.30.2 diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000000..63afe15f0a --- /dev/null +++ b/_typos.toml @@ -0,0 +1,11 @@ +[files] +extend-exclude = [ + ".git/", # Version control files + "achive/*", # Archive files +] + +# Match Inside a Word - Case Insensitive +[default.extend-words] +ue = "ue" # Nestopia UE +sav = "sav" # .sav file extension +kernal = "kernal" # Commodore's low-level Operating System