gri3-wm/travis/check-formatting.sh

7 lines
171 B
Bash
Executable File

#!/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)