lint: Fix linter excludes for 'realm' in /help/.

This commit is contained in:
Tim Abbott
2021-09-10 13:14:08 -07:00
parent ec380bdb89
commit c9063870d0

View File

@@ -893,12 +893,12 @@ help_markdown_rules = RuleList(
"pattern": r"\b[rR]ealm[s]?\b",
"include_only": {"templates/zerver/help/"},
"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"],
"bad_lines": ["Users are in a realm", "Realm is the best model"],
"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,