mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
linter: Add check for comma after "e.g." in md files.
Adds a linter rule for markdown files so that new cases of "e.g." without a comma wont be introduced to user-facing documentation. Fixes the remaining cases of "e.g." in markdown files that are not followed by a comma.
This commit is contained in:
committed by
Tim Abbott
parent
6dfe063c91
commit
3410584094
@@ -879,6 +879,10 @@ markdown_rules = RuleList(
|
||||
"include_only": {"docs/"},
|
||||
"description": "Don't link directly to line numbers",
|
||||
},
|
||||
{
|
||||
"pattern": r"[eE]\.g\.[^,]",
|
||||
"description": "Likely missing comma after 'e.g.'",
|
||||
},
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user