lint: Ensure that docs don't link directly to code lines.

This commit is contained in:
Vishnu KS
2020-11-03 08:22:42 +00:00
committed by Tim Abbott
parent f2d18010c4
commit cba292b4bb

View File

@@ -673,6 +673,10 @@ markdown_rules = RuleList(
'include_only': {'README.md', 'CONTRIBUTING.md'},
'description': "Use absolute links from docs served by GitHub",
},
{'pattern': r"\.(py|js)#L\d+",
'include_only': {'docs/'},
'description': "Don't link directly to line numbers",
},
],
max_length=120,
length_exclude=markdown_docs_length_exclude,