diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-21 21:46:53 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-07-21 21:49:37 -0400 |
commit | 17bd595b155304e9f1defa480f5eb7d8c060d9d6 (patch) | |
tree | 3d0b0f351d6ff3d593f25b6a25da3d9599157a46 /scripts/check_whitespace.py | |
parent | 1a387ad50982cb84cf96870dd9759f1809204f1d (diff) | |
download | kutter-17bd595b155304e9f1defa480f5eb7d8c060d9d6.tar.gz kutter-17bd595b155304e9f1defa480f5eb7d8c060d9d6.tar.xz kutter-17bd595b155304e9f1defa480f5eb7d8c060d9d6.zip |
check_whitespace: Warn on trailing tabs in Makefiles
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/check_whitespace.py')
-rwxr-xr-x | scripts/check_whitespace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/check_whitespace.py b/scripts/check_whitespace.py index 1ab43674..da4cadab 100755 --- a/scripts/check_whitespace.py +++ b/scripts/check_whitespace.py @@ -48,7 +48,7 @@ def check_file(filename): char_name,)) break # Check for trailing space - if line.endswith(' '): + if line.endswith(' ') or line.endswith('\t'): report_error(filename, lineno, "Line has trailing spaces") # Check for more than 80 characters if is_source_code and len(line) > 80: |