lint: Check for invalid '!!! warning'.

This commit is contained in:
Tim Abbott 2017-01-05 15:14:54 -08:00
parent e724af3183
commit 1262db40ea
1 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,8 @@ def build_custom_checkers(by_lang):
'description': "github should be spelled GitHub"},
{'pattern': '[oO]rganisation', # exclude usage in hrefs/divs
'description': "Organization is spelled with a z"},
{'pattern': '!!! warning',
'description': "!!! warning is invalid; it's spelled '!!! warn'"},
] # type: RuleList
html_rules = whitespace_rules + prose_style_rules + [
{'pattern': 'placeholder="[^{]',