diff --git a/.github/workflows/spellchecker.yml b/.github/workflows/spellchecker.yml new file mode 100644 index 000000000..f8a8c4b97 --- /dev/null +++ b/.github/workflows/spellchecker.yml @@ -0,0 +1,13 @@ +name: spell checking +on: [pull_request] + +jobs: + typos: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v4 + - name: typos-action + uses: crate-ci/typos@v1.21.0 + diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 000000000..a07fa5c2b --- /dev/null +++ b/.typos.toml @@ -0,0 +1,11 @@ +[default] +locale = "en-us" + +[default.extend-words] +FROMM ="FROMM" # this one is intentionally written with a typo +unmarshaling ="unmarshaling" # this one is expected in golang + +[files] +# excluded file +# go.sum and go.mod contains URLs with hash, they can provide false positive +extend-exclude = ["go.sum","go.mod"]