Codebase list i3-gaps / 7610fdbf-f4ec-49f0-8004-47f3945d1a89/main travis / check-formatting.sh
7610fdbf-f4ec-49f0-8004-47f3945d1a89/main

Tree @7610fdbf-f4ec-49f0-8004-47f3945d1a89/main (Download .tar.gz)

check-formatting.sh @7610fdbf-f4ec-49f0-8004-47f3945d1a89/mainraw · 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)