From 17bd595b155304e9f1defa480f5eb7d8c060d9d6 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 21 Jul 2019 21:46:53 -0400 Subject: [PATCH] check_whitespace: Warn on trailing tabs in Makefiles Signed-off-by: Kevin O'Connor --- scripts/check_whitespace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: