Codebase list i3-gaps / c08c03d1-3991-4794-b68c-54a2ef0427eb/upstream travis / check-formatting.sh
c08c03d1-3991-4794-b68c-54a2ef0427eb/upstream

Tree @c08c03d1-3991-4794-b68c-54a2ef0427eb/upstream (Download .tar.gz)

check-formatting.sh @c08c03d1-3991-4794-b68c-54a2ef0427eb/upstreamraw · history · blame

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

set -e
set -x

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