lint-all: Add Python check for space after if.

This commit is contained in:
Tim Abbott 2016-07-10 10:58:16 -07:00
parent dfc9e75342
commit 88368397aa
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,8 @@ python_rules = [
{'pattern': "#type",
'exclude': 'tools/lint-all',
'description': 'Missing whitespace after "#" in type annotation'},
{'pattern': 'if[(]',
'description': 'Missing space between if and ('},
{'pattern': ", [)]",
'description': 'Unnecessary whitespace between "," and ")"'},
{'pattern': "% [(]",