Clarify comment on empty json_rules list.

Fixes: #2030.
This commit is contained in:
Sumana Harihareswara 2016-10-16 12:55:52 -04:00 committed by Tim Abbott
parent bef73be824
commit a4ac09cb8f
1 changed files with 3 additions and 1 deletions

View File

@ -330,7 +330,9 @@ def build_custom_checkers(by_lang):
{'pattern': "placeholder='[^{]",
'description': "`placeholder` value should be translatable."},
] # type: RuleList
json_rules = [] # type: RuleList # just fix newlines at ends of files
json_rules = [] # type: RuleList # fix newlines at ends of files
# It is okay that json_rules is empty, because the empty list
# ensures we'll still check JSON files for whitespace.
markdown_rules = markdown_whitespace_rules + prose_style_rules
txt_rules = whitespace_rules