lint: Add rule to check for misspellings of 'GitHub'.

This commit is contained in:
deekshaarul 2016-10-22 02:44:39 +05:30 committed by Tim Abbott
parent 16c3da6db5
commit be903382f8
1 changed files with 2 additions and 0 deletions

View File

@ -324,6 +324,8 @@ def build_custom_checkers(by_lang):
prose_style_rules = [
{'pattern': '[^\/\#\-\"]([jJ]avascript)', # exclude usage in hrefs/divs
'description': "javascript should be spelled JavaScript"},
{'pattern': '[^\/\-\.\"\']([gG]ithub)[^\.\-\_\"]', # exclude usage in hrefs/divs
'description': "github should be spelled GitHub"},
] # type: RuleList
html_rules = whitespace_rules + prose_style_rules + [
{'pattern': 'placeholder="[^{]',