From 127fd095e79614073eabecaa530468615b138f37 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Sat, 11 Mar 2023 03:11:19 +0100 Subject: [PATCH] CI: add spell-check.yml --- .github/typos_config.toml | 34 +++++++++++++++++++++++++++++++ .github/workflows/spell-check.yml | 16 +++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/typos_config.toml create mode 100644 .github/workflows/spell-check.yml diff --git a/.github/typos_config.toml b/.github/typos_config.toml new file mode 100644 index 00000000..c968c19f --- /dev/null +++ b/.github/typos_config.toml @@ -0,0 +1,34 @@ +# see https://github.com/crate-ci/typos + +# a generic spell-checker that works on source code is quite +# tricky, so some false positives are fine + +[files] +extend-exclude = ["LICENSE"] + +[default.extend-identifiers] +# misc variable names & symbols +acc_spawnve = "acc_spawnve" +fo = "fo" +fof = "fof" +sidelen = "sidelen" +# assembly sources +CArry = "CArry" +hda = "hda" +Larg = "Larg" +pard = "pard" +suble = "suble" + +# identifiers are intelligently split into words and then checked again +[default.extend-words] +FO = "FO" +fo = "fo" +# parm is used like param +PARM = "PARM" +parm = "parm" +# rela: ELF relocations +RELA = "RELA" +rela = "rela" +# SEH: Structured Exception Handling +SEH = "SEH" +seh = "seh" diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml new file mode 100644 index 00000000..cbf19bbc --- /dev/null +++ b/.github/workflows/spell-check.yml @@ -0,0 +1,16 @@ +# see https://github.com/crate-ci/typos + +name: 'Misc - Spell check' +on: + workflow_dispatch: +jobs: + job-spell-check: + name: 'Spell check' + runs-on: ubuntu-latest + steps: + - name: 'Check out code' + uses: actions/checkout@v3 + with: { submodules: false } + - name: 'Spell check with crate-ci/typos' + uses: crate-ci/typos@master + with: { config: ./.github/typos_config.toml }