From 34e3329919249bed7e11bac4711d71037bb0d37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6nig?= Date: Thu, 7 Sep 2017 11:30:43 +0200 Subject: [PATCH] linter: Add rule against misspelled "Terms of Service". --- tools/linter_lib/custom_check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index d130eaaa65..a184dce34d 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -354,6 +354,8 @@ def build_custom_checkers(by_lang): 'description': "Organization is spelled with a z"}, {'pattern': '!!! warning', 'description': "!!! warning is invalid; it's spelled '!!! warn'"}, + {'pattern': 'Terms of service', + 'description': "The S in Terms of Service is capitalized"}, ] # type: RuleList html_rules = whitespace_rules + prose_style_rules + [ {'pattern': 'placeholder="[^{]',