tools/lint: Require a space after every : in JSON files.

This commit is contained in:
Eeshan Garg
2018-03-02 17:36:21 -03:30
committed by Tim Abbott
parent 50a66725a1
commit 59581f6a32

View File

@@ -681,6 +681,9 @@ def build_custom_checkers(by_lang):
'strip': '\n',
'exclude': set(['zerver/webhooks/']),
'description': 'Fix tab-based whitespace'},
{'pattern': ':[\"\[\{]',
'exclude': set(['zerver/webhooks/', 'zerver/fixtures/']),
'description': 'Require space after : in JSON'},
] # type: RuleList
markdown_rules = markdown_whitespace_rules + prose_style_rules + [
{'pattern': '\[(?P<url>[^\]]+)\]\((?P=url)\)',