Use ignore words file with codespell

It is not possible to automatically backport pull requests that makes
modifications to workflow files and since the codespell action has a
hard-coded list of ignored words as options, this means that any
changes to the ignored codespell words cannot be backported.

This pull request fixes this by using a ignore words file instead,
which means that adding new words does not require changing a workflow
file and hence the pull requests can be automatically backported.
This commit is contained in:
Mats Kindahl 2024-04-11 08:34:23 +02:00 committed by Mats Kindahl
parent 8347621016
commit 971e6c370e
2 changed files with 5 additions and 1 deletions

4
.github/codespell-ignore-words vendored Normal file
View File

@ -0,0 +1,4 @@
brin
inh
larg
inout

View File

@ -66,7 +66,7 @@ jobs:
- name: Run codespell
run: |
find . -type f \( -name "*.c" -or -name "*.h" -or -name "*.yaml" -or -name "*.sh" \) \
-exec codespell -L "brin,inh,larg,inout" {} \+
-exec codespell -I .github/codespell-ignore-words {} \+
cc_checks:
name: Check code formatting