mirror of https://github.com/zulip/zulip.git
Don't allow literal string in report_success.
This commit is contained in:
parent
4da1a3ecd6
commit
b7bb49c6f5
|
@ -172,6 +172,10 @@ js_rules = [
|
|||
'exclude': set(['tools/lint-all']),
|
||||
'description': 'Argument to compose_error should be a literal string enclosed '
|
||||
'by i18n.t()'},
|
||||
{'pattern': 'report_success\(["\']',
|
||||
'exclude': set(['tools/lint-all']),
|
||||
'description': 'Argument to report_success should be a literal string enclosed '
|
||||
'by i18n.t()'},
|
||||
] + whitespace_rules
|
||||
python_rules = [
|
||||
{'pattern': '^(?!#)@login_required',
|
||||
|
|
Loading…
Reference in New Issue