mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
compatibility: Clean up linter logic for too-old client.
This commit is contained in:
@@ -499,11 +499,6 @@ def build_custom_checkers(by_lang):
|
||||
'bad_lines': ['return json_error(_variable)', 'return json_error(_(variable))']},
|
||||
{'pattern': r'''\Wjson_error\(['"].+[),]$''',
|
||||
'exclude': set(['zerver/tests']),
|
||||
'exclude_line': set([
|
||||
# We don't want this string tagged for translation.
|
||||
('zerver/views/compatibility.py', 'return json_error("Client is too old") # take 0'),
|
||||
('zerver/views/compatibility.py', 'return json_error("Client is too old")'),
|
||||
]),
|
||||
'description': 'Argument to json_error should a literal string enclosed by _()'},
|
||||
# To avoid JsonableError(_variable) and JsonableError(_(variable))
|
||||
{'pattern': r'\WJsonableError\(_\(?\w.+\)',
|
||||
|
||||
Reference in New Issue
Block a user