From 61375a6245bc963a8a1bbbe3f70fa1042887746a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 11 Oct 2021 09:44:33 +0200 Subject: [PATCH] chore: Add a github action to check for typos --- .github/workflows/ci.yml | 12 ++++++++++++ .typos.toml | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .typos.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55b62dfdf..949a6ff20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,18 @@ jobs: command: fmt args: --all -- --check + typos: + name: Spell Check with Typos + needs: [style] + runs-on: ubuntu-latest + + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v2 + + - name: Check the spelling of the files in our repo + uses: crate-ci/typos@master + clippy: name: Run clippy needs: [style] diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 000000000..0ccb29c56 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,10 @@ +[default.extend-words] +# Remove this once base64 gets correctly ignored by typos +# Or if we're able to ignore certain lines. +Fo = "Fo" +BA = "BA" + +[files] +# Our json files contain a bunch of base64 encoded ed25519 keys which aren't +# automatically ignored, we ignore them here. +extend-exclude = ["*.json"]