Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
lint: Ensure that docs don't link directly to code lines.
Vishnu KScba292b4bb63
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex 72ffda4739d..cc46a9005b0 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -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,