From ffb05aef6d02c4712f525776c419814e1ad7c647 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Tue, 7 Mar 2023 03:34:29 -0300 Subject: 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). --- Makefile | 7 +++++-- 1 file 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 scan-build $(MAKE) .PHONY: codespell -codespell: clean - codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" src test +codespell: + @printf 'Running %s...\n' $@ + @codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" \ + -S *.gz,*.o,*.so \ + src test .PHONY: print-env print-env: -- cgit v1.2.3-70-g09d2