Skip to content

Commit b2821a3

Browse files
committed
build: run codespell on almost all files
Ignore only third-party/vendored files (such as license files and files in m4/). And ignore more words to fix the following errors: $ make codespell Running codespell... ./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:374: codespell] Error 65 $ codespell --version 2.2.5
1 parent 894b145 commit b2821a3

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,12 +366,16 @@ 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:
371373
@printf 'Running %s...\n' $@
372-
@codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" \
374+
@codespell --ignore-regex 'UE|als|chage|creat|doas|ether|isplay|readby|[Ss]hotcut' \
373375
-S *.gz,*.o,*.so \
374-
src test
376+
-S COPYING,m4 \
377+
-S ./contrib/syscalls.sh \
378+
.
375379

376380
.PHONY: print-env
377381
print-env:

0 commit comments

Comments
 (0)