chore: Add a github action to check for typos

This commit is contained in:
Damir Jelić
2021-10-11 09:44:33 +02:00
parent 3c08b5cf09
commit 61375a6245
2 changed files with 22 additions and 0 deletions

View File

@@ -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]

10
.typos.toml Normal file
View File

@@ -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"]