Don't allow literal string in report_success.

This commit is contained in:
Umair Khan 2016-06-23 15:49:00 +05:00 committed by Tim Abbott
parent 4da1a3ecd6
commit b7bb49c6f5
1 changed files with 4 additions and 0 deletions

View File

@ -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',