mirror of https://github.com/zulip/zulip.git
lint: Add rule to check for misspellings of 'GitHub'.
This commit is contained in:
parent
16c3da6db5
commit
be903382f8
|
@ -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="[^{]',
|
||||
|
|
Loading…
Reference in New Issue