check_whitespace: Warn on trailing tabs in Makefiles

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-07-21 21:46:53 -04:00
parent 1a387ad509
commit 17bd595b15
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def check_file(filename):
char_name,)) char_name,))
break break
# Check for trailing space # Check for trailing space
if line.endswith(' '): if line.endswith(' ') or line.endswith('\t'):
report_error(filename, lineno, "Line has trailing spaces") report_error(filename, lineno, "Line has trailing spaces")
# Check for more than 80 characters # Check for more than 80 characters
if is_source_code and len(line) > 80: if is_source_code and len(line) > 80: