mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
lint: Prevent "userid" in code.
We should always use user_id for consistency sake.
This commit is contained in:
@@ -279,6 +279,8 @@ def build_custom_checkers(by_lang):
|
||||
{'pattern': 'django.utils.translation',
|
||||
'include_only': set(['test/']),
|
||||
'description': 'Test strings should not be tagged for translationx'},
|
||||
{'pattern': 'userid',
|
||||
'description': 'We prefer user_id over userid.'},
|
||||
{'pattern': 'json_success\({}\)',
|
||||
'description': 'Use json_success() to return nothing'},
|
||||
# To avoid json_error(_variable) and json_error(_(variable))
|
||||
|
||||
Reference in New Issue
Block a user