]> git.sur5r.net Git - i3/i3/blobdiff - travis/check-formatting.sh
travis: check spelling of binaries and manpages, use docker
[i3/i3] / travis / check-formatting.sh
diff --git a/travis/check-formatting.sh b/travis/check-formatting.sh
new file mode 100755 (executable)
index 0000000..abdb116
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+clang-format-3.5 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)