mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
lint: Ensure that docs don't link directly to code lines.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user