Codebase list i3-gaps / e65c03e9-f5c0-4617-be07-199c943511be/main travis / check-formatting.sh
e65c03e9-f5c0-4617-be07-199c943511be/main

Tree @e65c03e9-f5c0-4617-be07-199c943511be/main (Download .tar.gz)

check-formatting.sh @e65c03e9-f5c0-4617-be07-199c943511be/mainraw · history · blame

1
2
3
4
5
6
#!/bin/sh

set -e
set -x

clang-format-6.0 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)