aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-03-07 03:34:29 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-13 23:23:31 -0300
commitffb05aef6d02c4712f525776c419814e1ad7c647 (patch)
treedf1fbe9497e7e86dac35e5da392eefaa281bcbb4 /Makefile
parentbuild: fix codespell errors in more files (diff)
downloadfirejail-ffb05aef6d02c4712f525776c419814e1ad7c647.tar.gz
firejail-ffb05aef6d02c4712f525776c419814e1ad7c647.tar.zst
firejail-ffb05aef6d02c4712f525776c419814e1ad7c647.zip
build: codespell: remove dependency on "clean"
It works just fine without it (at least for the files in src/). Note that by default codespell does not warn about binary files ("The default mask is 34"): $ make -j "$(nproc)" >/dev/null $ make codespell codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" src test $ codespell --version 2.2.5 $ codespell --help [...] -q QUIET_LEVEL, --quiet-level QUIET_LEVEL bitmask that allows suppressing messages: - 0: print all messages. - 1: disable warnings about wrong encoding. - 2: disable warnings about binary files. - 4: omit warnings about automatic fixes that were disabled in the dictionary. - 8: don't print anything for non-automatic fixes. - 16: don't print the list of fixed files. - 32: don't print configuration files. As usual with bitmasks, these levels can be combined; e.g. use 3 for levels 1+2, 7 for 1+2+4, 23 for 1+2+4+16, etc. The default mask is 34. Also, note that adding many ignore patterns (such as all of the ones in .gitignore) makes it slower than letting codespell find and skip binary files by itself. So just add the most common ones, which do not noticeably change how fast codespell runs either but they do reduce the noise when running with `-q 0`. Homepage: https://github.com/codespell-project/codespell Added on commit d78fc96ee ("codespell github action", 2023-03-05).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e3e0ad551..7bbdcbfd3 100644
--- a/Makefile
+++ b/Makefile
@@ -367,8 +367,11 @@ scan-build: clean
367 scan-build $(MAKE) 367 scan-build $(MAKE)
368 368
369.PHONY: codespell 369.PHONY: codespell
370codespell: clean 370codespell:
371 codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" src test 371 @printf 'Running %s...\n' $@
372 @codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" \
373 -S *.gz,*.o,*.so \
374 src test
372 375
373.PHONY: print-env 376.PHONY: print-env
374print-env: 377print-env: