diff options
Diffstat (limited to 'BuildTools')
-rwxr-xr-x | BuildTools/CheckTabs.py | 5 |
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) |