tools/nxstyle: add a script to check a whole tree at once

nxstyle checks one file per invocation.  nxstyle_sweep.sh runs it over
the directories given, or the whole repository, and collects what it
reports.

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code
This commit is contained in:
raiden00pl 2026-07-27 12:20:13 +02:00 committed by Xiang Xiao
parent 44dac09322
commit a4a12b1cd4
2 changed files with 214 additions and 0 deletions

View file

@ -0,0 +1,25 @@
====================
``nxstyle_sweep.sh``
====================
Run ``nxstyle`` over whole directories, or over the repository, and collect
what it reports. Usage:
.. code:: console
$ tools/nxstyle_sweep.sh [options] [<dir> ...]
-o <file> Diagnostics (default: nxstyle-errors.txt)
-f <file> Failing files, worst first (default: nxstyle-files.txt)
-l List failing files instead of writing the reports
-s Summarise the diagnostics by message
-b <path> Use an existing nxstyle binary
-j <n> Number of parallel checks
-a Check every file, not only those tracked by git
-h Show this help
Options must precede the directories, which default to the whole repository
and are relative to its top. The exit status is non-zero if anything was
reported.
See also ``nxstyle``.