diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-08-12 19:51:30 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-08-14 04:32:51 -0300 |
commit | b2821a3448b489bc751e4acf2d6da1ad6f05a834 (patch) | |
tree | 9562ef4a7b566faf40fac307acefb44e7972ce19 /Makefile | |
parent | ci: run ./configure in codespell (diff) | |
download | firejail-b2821a3448b489bc751e4acf2d6da1ad6f05a834.tar.gz firejail-b2821a3448b489bc751e4acf2d6da1ad6f05a834.tar.zst firejail-b2821a3448b489bc751e4acf2d6da1ad6f05a834.zip |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -366,12 +366,16 @@ cppcheck: clean | |||
366 | scan-build: clean | 366 | scan-build: clean |
367 | scan-build $(MAKE) | 367 | scan-build $(MAKE) |
368 | 368 | ||
369 | # TODO: Old codespell versions (such as v2.1.0 in CI) have issues with | ||
370 | # contrib/syscalls.sh | ||
369 | .PHONY: codespell | 371 | .PHONY: codespell |
370 | codespell: | 372 | codespell: |
371 | @printf 'Running %s...\n' $@ | 373 | @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' \ |
373 | -S *.gz,*.o,*.so \ | 375 | -S *.gz,*.o,*.so \ |
374 | src test | 376 | -S COPYING,m4 \ |
377 | -S ./contrib/syscalls.sh \ | ||
378 | . | ||
375 | 379 | ||
376 | .PHONY: print-env | 380 | .PHONY: print-env |
377 | print-env: | 381 | print-env: |