aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-08 09:01:04 -0300
committerEuAndreh <eu@euandre.org>2021-06-08 09:01:04 -0300
commit133b50f21b7c8538bb22646179f9f2d34604181e (patch)
treee02def955aade5fa792feb6937e1effd2b62a330 /sh
parentconfiguration.nix: Disable users.mutableUsers option (diff)
downloaddotfiles-133b50f21b7c8538bb22646179f9f2d34604181e.tar.gz
dotfiles-133b50f21b7c8538bb22646179f9f2d34604181e.tar.xz
sh/templates/: Remove assert-clang-format.sh
Diffstat (limited to 'sh')
-rw-r--r--sh/templates/Makefile1
-rwxr-xr-xsh/templates/aux/assert-clang-format.sh16
2 files changed, 0 insertions, 17 deletions
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
- }
-' _ {} +