fix: satify all clang code requirements

This commit is contained in:
2025-08-27 22:21:21 +02:00
parent ff3e58ee5b
commit 570a68c586
5 changed files with 22 additions and 23 deletions

View File

@@ -138,8 +138,8 @@ pre-commit:
prettier -c "**/*.md"
git ls-files "*.sh" "*/PKGBUILD" | xargs shellcheck --shell=bash
clang-format -i $$(git ls-files "*.c" "*.h")
git ls-files -z "*.h" | \
parallel -j$$(nproc) -q0 --no-notice --will-cite --tty clang-tidy --quiet |& \
git ls-files -z "*.c" "*.h" | \
parallel -j$$(nproc) -q0 --no-notice --will-cite --tty clang-tidy -warnings-as-errors=\* --quiet |& \
grep -v "warnings generated." || true
print-version: