chore: organize and parallelize some checks

This commit is contained in:
2025-08-21 18:53:33 +02:00
parent 947c92ce3f
commit dad5296839
2 changed files with 6 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ jobs:
with: with:
packages: "shellcheck" packages: "shellcheck"
version: 1.0 version: 1.0
- run: find . -type f -name '*.sh' -not -path './assets/pkg/aur/*/src/*' | xargs shellcheck - run: git ls-files "*.sh" "*/PKGBUILD" | xargs shellcheck --shell=bash
clangcheck: clangcheck:
name: Clang name: Clang

View File

@@ -134,10 +134,12 @@ install-service-s6-etc:
pre-commit: pre-commit:
codespell codespell
prettier --write "**/*.md" prettier -c "**/*.md"
find . -type f -name '*.sh' -not -path './assets/pkg/aur/*/src/*' | xargs shellcheck git ls-files "*.sh" "*/PKGBUILD" | xargs shellcheck --shell=bash
clang-format -i $$(git ls-files "*.c" "*.h") clang-format -i $$(git ls-files "*.c" "*.h")
clang-tidy -p . $$(git ls-files "*.c" "*.h") git ls-files -z "*.h" | \
parallel -j$$(nproc) -q0 --no-notice --will-cite --tty clang-tidy --quiet |& \
grep -v "warnings generated." || true
print-version: print-version:
@echo $(VERSION) @echo $(VERSION)