diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | sh/templates/Makefile | 1 | ||||
| -rwxr-xr-x | sh/templates/aux/assert-clang-format.sh | 16 |
3 files changed, 0 insertions, 18 deletions
@@ -2,7 +2,6 @@ check: sh aux/assert-shellcheck.sh sh aux/assert-todos.sh sh aux/assert-nixfmt.sh - sh sh/templates/aux/assert-clang-format.sh dev-check: check diff --git a/sh/templates/Makefile b/sh/templates/Makefile index 8d4758f7..c8618a27 100644 --- a/sh/templates/Makefile +++ b/sh/templates/Makefile @@ -63,7 +63,6 @@ check: run-tests dev-check: all check fallible-tests valgrind `fallible-check --valgrind-flags` ./run-tests fallible-check ./fallible-tests - sh aux/assert-clang-format.sh sh aux/assert-shellcheck.sh sh aux/workflow/assert-todos.sh sh aux/workflow/assert-changelog.sh $(NAME) diff --git a/sh/templates/aux/assert-clang-format.sh b/sh/templates/aux/assert-clang-format.sh deleted file mode 100755 index cf3fbb4d..00000000 --- a/sh/templates/aux/assert-clang-format.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -set -eu - -if [ "${1:-}" = '--fix-in-place' ]; then - find . -type f \( -name '*.h' -o -name '*.c' \) -exec clang-format -i {} \; - exit 0 -fi - -# shellcheck disable=2016 -find . -type f \( -name '*.h' -o -name '*.c' \) -exec sh -c ' - clang-format "$1" | diff - "$1" || { - echo "Unformatted C code. To fix it, run:" - echo " ./aux/assert-clang-format.sh --fix-in-place" - exit 1 - } -' _ {} + |
