labwc/scripts
Tomi Ollila f09a0c2be3 scripts/check: run checkpatch.pl processes with max 16 args each
Reduce the overhead of fork/execve/perl startup time by not
doing those for every files that are checked.

This also makes the check execution complete faster.

On similar systems and similar background load, the execution time
varies based on how find(1) outputs the (*.[ch]) files it sees on
filesystem -- the filenames are not sorted but are written from
directories src/ include/ clients/ t/ in that order -- more than
80% of the time goes checking files in src/, and how the 16-file
batches from that dir (108 files in src/, 208 total, as of 2026-01)
are distributed the checkpatch.pl processes affect mostly to the
total run time.
2026-01-09 23:17:14 +01:00
..
ci CI: verify early exit on missing fonts 2025-05-09 20:20:54 +01:00
helper ci: include scripts/find-banned.sh 2023-12-29 11:47:55 +01:00
.gitignore NEWS.md: link from TOC to each section 2025-09-02 08:14:39 +09:00
asan_leak_suppressions Add lsan.supp 2024-11-26 21:29:09 +00:00
check scripts/check: run checkpatch.pl processes with max 16 args each 2026-01-09 23:17:14 +01:00
checkpatch.pl scripts/check: run style check for test files 2025-10-20 04:12:38 +09:00
find-banned.sh CI: add atof() to banned list 2024-05-13 11:06:04 +02:00
README.md checkpatch: add scripts/check for batch processing 2022-11-03 19:20:23 +00:00
rip.c NEWS.md: link from TOC to each section 2025-09-02 08:14:39 +09:00
run-with-asan.sh Add lsan.supp 2024-11-26 21:29:09 +00:00
wl_compcheck.py scripts: add wl_compcheck.py 2024-12-10 21:05:31 +00:00

These scripts are intended to be run from the project top-level directory like this: scripts/foo.sh

  • scripts/check: wrapper to check all files in src/ and include/

  • scripts/checkpatch.pl: Quick hack on the Linux kernel checkpatch.pl to lint C files written according to the labwc coding style. Run like this: ./checkpatch.pl --no-tree --terse --strict --file <file>