Skip to content

Commit

Permalink
test spell checker
Browse files Browse the repository at this point in the history
  • Loading branch information
yairgott committed Feb 3, 2025
1 parent 8ca35b5 commit 553fa63
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .config/typos.toml
Original file line number Diff line number Diff line change
@@ -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"
29 changes: 29 additions & 0 deletions .github/workflows/spell_check.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 553fa63

Please sign in to comment.