linter: Add rule against misspelled "Terms of Service".

This commit is contained in:
Robert Hönig 2017-09-07 11:30:43 +02:00 committed by showell
parent 0986fe700d
commit 34e3329919
1 changed files with 2 additions and 0 deletions

View File

@ -354,6 +354,8 @@ def build_custom_checkers(by_lang):
'description': "Organization is spelled with a z"}, 'description': "Organization is spelled with a z"},
{'pattern': '!!! warning', {'pattern': '!!! warning',
'description': "!!! warning is invalid; it's spelled '!!! warn'"}, 'description': "!!! warning is invalid; it's spelled '!!! warn'"},
{'pattern': 'Terms of service',
'description': "The S in Terms of Service is capitalized"},
] # type: RuleList ] # type: RuleList
html_rules = whitespace_rules + prose_style_rules + [ html_rules = whitespace_rules + prose_style_rules + [
{'pattern': 'placeholder="[^{]', {'pattern': 'placeholder="[^{]',