Codebase list i3-gaps / 1044c05b-d8a9-4bb1-bade-a30deb63a633/upstream travis / check-formatting.sh
1044c05b-d8a9-4bb1-bade-a30deb63a633/upstream

Tree @1044c05b-d8a9-4bb1-bade-a30deb63a633/upstream (Download .tar.gz)

check-formatting.sh @1044c05b-d8a9-4bb1-bade-a30deb63a633/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)