From a4ac09cb8f53932cc91227144a310a4a50a6aea3 Mon Sep 17 00:00:00 2001 From: Sumana Harihareswara Date: Sun, 16 Oct 2016 12:55:52 -0400 Subject: [PATCH] Clarify comment on empty json_rules list. Fixes: #2030. --- tools/lint-all | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/lint-all b/tools/lint-all index 0068a1625d..9d72d4e796 100755 --- a/tools/lint-all +++ b/tools/lint-all @@ -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