diff options
Diffstat (limited to 'tools/syntax/CheckTabs.sh')
-rwxr-xr-x | tools/syntax/CheckTabs.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/syntax/CheckTabs.sh b/tools/syntax/CheckTabs.sh new file mode 100755 index 0000000..0c11c49 --- /dev/null +++ b/tools/syntax/CheckTabs.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +FAILING_FILES=`grep -r "^ " * | grep -E "^(\w|/)+\.(cpp|h):" | grep -E -v "^(src/(Swift/)?)?3rdParty" | grep -v "^.*moc_" | sed -e "s/:.*//" | uniq` + +if [ "$FAILING_FILES" ]; then + echo "ERROR: Found whitespace instead of tabs in the following files:" + echo "$FAILING_FILES" +fi |