lint: Ban redundant linkified URLs.

This commit is contained in:
Yago González 2017-03-19 20:44:04 +00:00 committed by Tim Abbott
parent eb1843fd37
commit df94719707
1 changed files with 4 additions and 1 deletions

View File

@ -505,7 +505,10 @@ def build_custom_checkers(by_lang):
json_rules = [] # type: RuleList # fix newlines at ends of files
# It is okay that json_rules is empty, because the empty list
# ensures we'll still check JSON files for whitespace.
markdown_rules = markdown_whitespace_rules + prose_style_rules
markdown_rules = markdown_whitespace_rules + prose_style_rules + [
{'pattern': '\[(?P<url>[^\]]+)\]\((?P=url)\)',
'description': 'Linkified markdown URLs should use cleaner <http://example.com> syntax.'}
]
help_markdown_rules = markdown_rules + [
{'pattern': '[a-z][.][A-Z]',
'description': "Likely missing space after end of sentence"},