mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
lint: Fix linter excludes for 'realm' in /help/.
This commit is contained in:
@@ -893,12 +893,12 @@ help_markdown_rules = RuleList(
|
|||||||
"pattern": r"\b[rR]ealm[s]?\b",
|
"pattern": r"\b[rR]ealm[s]?\b",
|
||||||
"include_only": {"templates/zerver/help/"},
|
"include_only": {"templates/zerver/help/"},
|
||||||
"exclude": {"templates/zerver/help/change-organization-url.md"},
|
"exclude": {"templates/zerver/help/change-organization-url.md"},
|
||||||
# Keycloak uses the term realm as well.
|
|
||||||
"exclude_pattern": "[Kk]eycloak",
|
|
||||||
"good_lines": ["Organization", "deactivate_realm", "realm_filter"],
|
"good_lines": ["Organization", "deactivate_realm", "realm_filter"],
|
||||||
"bad_lines": ["Users are in a realm", "Realm is the best model"],
|
"bad_lines": ["Users are in a realm", "Realm is the best model"],
|
||||||
"description": "Realms are referred to as Organizations in user-facing docs.",
|
"description": "Realms are referred to as Organizations in user-facing docs.",
|
||||||
"exclude_pattern": "-realm-",
|
# Keycloak uses the term realm as well.
|
||||||
|
# Additionally, we allow -realm- as that appears in /api/ doc URLs.
|
||||||
|
"exclude_pattern": "(-realm-|[kK]eycloak)",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
length_exclude=markdown_docs_length_exclude,
|
length_exclude=markdown_docs_length_exclude,
|
||||||
|
|||||||
Reference in New Issue
Block a user