Codebase list i3-gaps / abeb4c4c-35f7-44b3-961f-efafcc45e92a/main travis / check-formatting.sh
abeb4c4c-35f7-44b3-961f-efafcc45e92a/main

Tree @abeb4c4c-35f7-44b3-961f-efafcc45e92a/main (Download .tar.gz)

check-formatting.sh @abeb4c4c-35f7-44b3-961f-efafcc45e92a/mainraw · history · blame

1
2
3
4
5
6
#!/bin/sh

set -e
set -x

clang-format-6.0 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)