mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-09-29 11:21:12 -04:00
Replace tabs with spaces (#7223)
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Fail if any C/C++ source in soh/ outside soh/include contains a tab.
|
||||
|
||||
cd "$(dirname "$0")/.." || exit 2
|
||||
|
||||
if git grep -n "$(printf '\t')" -- 'soh/*.c' 'soh/*.cpp' 'soh/*.h' 'soh/*.hpp' ':!soh/include'; then
|
||||
echo "replace tabs with spaces"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user