diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ba9e3ee..d16e11f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -26,7 +26,7 @@ jobs: with: packages: "shellcheck" 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: name: Clang diff --git a/Makefile b/Makefile index 59f8799..ad366d9 100644 --- a/Makefile +++ b/Makefile @@ -134,10 +134,12 @@ install-service-s6-etc: pre-commit: codespell - prettier --write "**/*.md" - find . -type f -name '*.sh' -not -path './assets/pkg/aur/*/src/*' | xargs shellcheck + prettier -c "**/*.md" + git ls-files "*.sh" "*/PKGBUILD" | xargs shellcheck --shell=bash 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: @echo $(VERSION)