Skip to content

Commit 15965b2

Browse files
committed
build: run codespell on almost all files
Ignore only license files and m4/ (which may contain third-party files). And ignore more words to fix the following errors: $ make codespell codespell --ignore-regex 'UE|creat|doas|ether|isplay|shotcut' \ -S COPYING,m4 . ./README:484: als ==> also ./README:646: Shotcut ==> Shortcut ./RELNOTES:516: als ==> also ./etc/inc/disable-common.inc:506: chage ==> change, charge ./etc/apparmor/firejail-default:35: readby ==> read, read by ./etc/apparmor/firejail-default:36: readby ==> read, read by ./etc/profile-a-l/als.profile:1: als ==> also ./etc/profile-a-l/als.profile:5: als ==> also make: *** [Makefile:371: codespell] Error 65 $ codespell --version 2.2.5
1 parent 7b33c7f commit 15965b2

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/codespell.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: Codespell
22

33
on:
44
push:
5-
paths:
6-
- 'src/**'
7-
- 'test/**'
5+
paths-ignore:
6+
- 'm4/**'
7+
- COPYING
88
pull_request:
9-
paths:
10-
- 'src/**'
11-
- 'test/**'
9+
paths-ignore:
10+
- 'm4/**'
11+
- COPYING
1212

1313
permissions: # added using https://github.com/step-security/secure-workflows
1414
contents: read

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,14 @@ cppcheck: clean
366366
scan-build: clean
367367
scan-build $(MAKE)
368368

369+
# TODO: Old codespell versions (such as v2.1.0 in CI) have issues with
370+
# contrib/syscalls.sh
369371
.PHONY: codespell
370372
codespell:
371-
codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" src test
372-
373+
codespell --ignore-regex 'UE|als|chage|creat|doas|ether|isplay|readby|[Ss]hotcut' \
374+
-S COPYING,m4 \
375+
-S ./contrib/syscalls.sh \
376+
.
373377
.PHONY: print-env
374378
print-env:
375379
./ci/printenv.sh

0 commit comments

Comments
 (0)