summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-22 09:42:41 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-22 09:43:34 (GMT)
commitfe4dbe0430524152d198401eb18934abd4bae082 (patch)
tree953a282b4c417be9c8dca9b694b159d7d019866f
parent04e6c3982dbca31bc6040a734ebfba153404ec41 (diff)
downloadswift-fe4dbe0430524152d198401eb18934abd4bae082.zip
swift-fe4dbe0430524152d198401eb18934abd4bae082.tar.bz2
Return error value when found expanded tabs.
-rwxr-xr-xBuildTools/CheckTabs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/BuildTools/CheckTabs.py b/BuildTools/CheckTabs.py
index 3dac977..6455a07 100755
--- a/BuildTools/CheckTabs.py
+++ b/BuildTools/CheckTabs.py
@@ -2,6 +2,8 @@
import os, sys
+foundExpandedTabs = False
+
for (path, dirs, files) in os.walk(".") :
if not "3rdParty" in path :
for filename in [os.path.join(path, file) for file in files if file.endswith(".cpp") or file.endswith(".h")] :
@@ -33,4 +35,7 @@ for (path, dirs, files) in os.walk(".") :
file.write(''.join(contents))
file.close()
else :
+ foundExpandedTabs = True
print filename + " contains expanded tabs"
+
+sys.exit(foundExpandedTabs)