lint: Check for missing space after comments.

This commit is contained in:
Tim Abbott 2016-05-02 22:09:24 -07:00
parent 762a3188ee
commit 391a225595
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ python_rules = [
'description': 'Missing whitespace after ":"'},
{'pattern': "':\w[^']*$",
'description': 'Missing whitespace after ":"'},
{'pattern': "^\s+[#]\w",
'strip': '\n',
'description': 'Missing whitespace after "#"'},
# This next check could have false positives, but it seems pretty
# rare; if we find any, they can be added to the exclude list for
# this rule.