Codebase list i3-gaps / ed4776c travis / check-formatting.sh
ed4776c

Tree @ed4776c (Download .tar.gz)

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