CI: add spell-check.yml

This commit is contained in:
Markus F.X.J. Oberhumer 2023-03-11 03:11:19 +01:00
parent fa56a1d9cd
commit 127fd095e7
2 changed files with 50 additions and 0 deletions

34
.github/typos_config.toml vendored Normal file
View File

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

16
.github/workflows/spell-check.yml vendored Normal file
View File

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