mirror of https://github.com/zulip/zulip.git
linter: Deprecate ui.report_success/error().
This commit is contained in:
parent
f89c9d6629
commit
8c0a1bddb0
|
@ -291,11 +291,17 @@ def build_custom_checkers(by_lang):
|
|||
'exclude': set(['tools/lint-all']),
|
||||
'description': 'Argument to compose_error should be a literal string enclosed '
|
||||
'by i18n.t()'},
|
||||
{'pattern': 'report_success\(["\']',
|
||||
{'pattern': 'ui.report_success\(',
|
||||
'exclude': set(['tools/lint-all']),
|
||||
'description': 'Deprecated function, use ui_report.success.'},
|
||||
{'pattern': 'report.success\(["\']',
|
||||
'exclude': set(['tools/lint-all']),
|
||||
'description': 'Argument to report_success should be a literal string enclosed '
|
||||
'by i18n.t()'},
|
||||
{'pattern': 'report_error\(["\']',
|
||||
{'pattern': 'ui.report_error\(',
|
||||
'exclude': set(['tools/lint-all']),
|
||||
'description': 'Deprecated function, use ui_report.error.'},
|
||||
{'pattern': 'report.error\(["\']',
|
||||
'exclude': set(['tools/lint-all']),
|
||||
'description': 'Argument to report_error should be a literal string enclosed '
|
||||
'by i18n.t()'},
|
||||
|
|
Loading…
Reference in New Issue