mirror of https://github.com/Desuuuu/klipper.git
check_whitespace: Warn on trailing tabs in Makefiles
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1a387ad509
commit
17bd595b15
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue