Codebase list i3-gaps / acc9a4e5-f0d0-4304-94ab-1051577d8a03/upstream travis / check-formatting.sh
acc9a4e5-f0d0-4304-94ab-1051577d8a03/upstream

Tree @acc9a4e5-f0d0-4304-94ab-1051577d8a03/upstream (Download .tar.gz)

check-formatting.sh @acc9a4e5-f0d0-4304-94ab-1051577d8a03/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)