Codebase list i3-gaps / 4b88b7e travis / check-formatting.sh
4b88b7e

Tree @4b88b7e (Download .tar.gz)

check-formatting.sh @4b88b7eraw · 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)