diff --git a/.config/typos.toml b/.config/typos.toml new file mode 100644 index 0000000..c3d4ee3 --- /dev/null +++ b/.config/typos.toml @@ -0,0 +1,56 @@ +# See https://github.com/crate-ci/typos/blob/master/docs/reference.md to configure typos + +[files] +extend-exclude = [ +] + + +[type.c] +extend-ignore-re = [ + "baNAna", + "D4C4DAA4", # sha1.c + "Georg Nees", + "\\[l\\]ist", # eval.c + '"LKE"', # test_rax.c +] + +[type.tcl] +extend-ignore-re = [ + "DUMPed", +] + +[type.c.extend-identifiers] +advices = "advices" +clen = "clen" +fle = "fle" +nd = "nd" +ot = "ot" + +[type.tcl.extend-identifiers] +oll = "oll" +stressers = "stressers" + +[type.sv.extend-identifiers] +# sv = .h +fo = "fo" + +[type.sv.extend-words] +# sv = .h +seeked = "seeked" + +[type.c.extend-words] +arange = "arange" +fo = "fo" +frst = "frst" +limite = "limite" +pn = "pn" +seeked = "seeked" +tre = "tre" + +[type.systemd.extend-words] +# systemd = .conf +ake = "ake" + +[type.tcl.extend-words] +fo = "fo" +tre = "tre" diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml new file mode 100644 index 0000000..b0888fe --- /dev/null +++ b/.github/workflows/spell_check.yml @@ -0,0 +1,29 @@ +name: Spellcheck + +on: + push: + pull_request: + +concurrency: + group: spellcheck-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + build: + name: Spellcheck + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install typos + uses: taiki-e/install-action@fe9759bf4432218c779595708e80a1aadc85cedc # v2.46.10 + with: + tool: typos + + - name: Spell check + run: typos --config=./.config/typos.toml