Codebase list i3-gaps / upstream/4.18.1 travis / check-formatting.sh
upstream/4.18.1

Tree @upstream/4.18.1 (Download .tar.gz)

check-formatting.sh @upstream/4.18.1raw · 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)