Codebase list i3-gaps / 49a74b55-30e5-4938-9b63-cf1b0d6b1aad/main travis / check-formatting.sh
49a74b55-30e5-4938-9b63-cf1b0d6b1aad/main

Tree @49a74b55-30e5-4938-9b63-cf1b0d6b1aad/main (Download .tar.gz)

check-formatting.sh @49a74b55-30e5-4938-9b63-cf1b0d6b1aad/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)