Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
linter: Add check for comma after "e.g." in md files.
Lauryn Menard3410584094aa
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdindex 623163dbae1..32c7dba542a 100644--- a/CODE_OF_CONDUCT.md+++ b/CODE_OF_CONDUCT.md@@ -66,7 +66,7 @@ organizers may take any action they deem appropriate, up to and including atemporary ban or permanent expulsion from the community without warning (andwithout refund in the case of a paid event).-If someone outside the development community (e.g. a user of the Zulip+If someone outside the development community (e.g., a user of the Zulipsoftware) engages in unacceptable behavior that affects someone in thecommunity, we still want to know. Even if we don't have direct control overthe violator, the community organizers can still support the peoplediff --git a/requirements/README.md b/requirements/README.mdindex de8b6fad37a..9b0d9ea01e7 100644--- a/requirements/README.md+++ b/requirements/README.md@@ -11,7 +11,7 @@ docs,pipOf the files, only dev and prod have been used in the installscripts directly. The rest are implicit dependencies.-Steps to update a lock file, e.g. to update ipython from 5.3.0 to latest version:+Steps to update a lock file, e.g., to update ipython from 5.3.0 to latest version:0. Remove entry for `ipython==5.3.0` in dev.txt.1. Run `./tools/update-locked-requirements`, which will generate new entries, pinned to the latest version.diff --git a/static/images/logo/README.md b/static/images/logo/README.mdindex 6fd5bcf8f51..2b33fb8d912 100644--- a/static/images/logo/README.md+++ b/static/images/logo/README.md@@ -2,7 +2,7 @@ Generally, we prefer to use SVG assets when possible.However, many websites where you might want to use a Zulip logo do notsupport SVG files. If you need a Zulip logo asset in a different-format (E.g. a 512px height PNG), you can generate that from one of+format (e.g., a 512px height PNG), you can generate that from one ofthe `.svg` files in this directory.On Linux, you can generate a PNG of a given height using the following:diff --git a/tools/droplets/README.md b/tools/droplets/README.mdindex 238dbee81b0..3ec53397b08 100644--- a/tools/droplets/README.md+++ b/tools/droplets/README.md@@ -66,7 +66,7 @@ listing all the droplets created during GCI.[Tags](https://www.digitalocean.com/community/tutorials/how-to-tag-digitalocean-droplets)may contain letters, numbers, colons, dashes, and underscores.-You'll need to run this from the Zulip development environment (e.g. in+You'll need to run this from the Zulip development environment (e.g., inVagrant).The script will also stop if a droplet has already been created for the@@ -130,7 +130,7 @@ so they are notified.- Check "Monitoring", "IPv6", and "User data"- Paste the contents of `tools/droplets/new-droplet-image` into thetext box which says `Enter user data here...`- - Name it e.g. `base-ubuntu-22-04.zulipdev.org`+ - Name it e.g., `base-ubuntu-22-04.zulipdev.org`1. Wait for the host to boot.1. Wait for the host to complete provisioning and shut down; this will takeabout 15 minutes.diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex c11d6380557..4fc76ef7006 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -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.'",+ },],)