Only warn about tab-indent

I noticed this in I21d3c2ad7a020a5ab02dc1ab532feae70b718892 ; if you
have a tab-indent, we don't need to warn that the same line is also
not indented correctly

Change-Id: If0499126fc64861de971f851e2715d4379bd9dee
This commit is contained in:
Ian Wienand
2015-10-20 11:57:14 +11:00
parent 77da51f026
commit bea415871a

View File

@@ -66,7 +66,7 @@ def check_indents(line, report):
if m:
if re.search('\t', m.group('indent')):
report.print_error(MESSAGES['E002'].msg, line)
if (len(m.group('indent')) % 4) != 0:
elif (len(m.group('indent')) % 4) != 0:
report.print_error(MESSAGES['E003'].msg, line)