Codebase list i3-gaps / 4ece7d83-1d17-4570-a05e-8b2169af7ac9/upstream travis / check-formatting.sh
4ece7d83-1d17-4570-a05e-8b2169af7ac9/upstream

Tree @4ece7d83-1d17-4570-a05e-8b2169af7ac9/upstream (Download .tar.gz)

check-formatting.sh @4ece7d83-1d17-4570-a05e-8b2169af7ac9/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)