lint: Check for space after if in javascript.

This commit is contained in:
Tim Abbott 2016-06-09 13:47:12 -07:00
parent eba0d6339f
commit 0c1b5006f7
5 changed files with 6 additions and 4 deletions

View File

@ -147,6 +147,8 @@ js_rules = [
'description': 'Missing whitespace after "="'}, 'description': 'Missing whitespace after "="'},
{'pattern': '^[ ]*//[A-Za-z0-9]', {'pattern': '^[ ]*//[A-Za-z0-9]',
'description': 'Missing space after // in comment'}, 'description': 'Missing space after // in comment'},
{'pattern': 'if[(]',
'description': 'Missing space between if and ('},
{'pattern': 'else{$', {'pattern': 'else{$',
'description': 'Missing space between else and {'}, 'description': 'Missing space between else and {'},
] + whitespace_rules ] + whitespace_rules