linter: Deprecate ui.report_success/error().

This commit is contained in:
Steve Howell 2017-03-22 06:57:23 -07:00
parent f89c9d6629
commit 8c0a1bddb0
1 changed files with 8 additions and 2 deletions

View File

@ -291,11 +291,17 @@ def build_custom_checkers(by_lang):
'exclude': set(['tools/lint-all']), 'exclude': set(['tools/lint-all']),
'description': 'Argument to compose_error should be a literal string enclosed ' 'description': 'Argument to compose_error should be a literal string enclosed '
'by i18n.t()'}, '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']), 'exclude': set(['tools/lint-all']),
'description': 'Argument to report_success should be a literal string enclosed ' 'description': 'Argument to report_success should be a literal string enclosed '
'by i18n.t()'}, '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']), 'exclude': set(['tools/lint-all']),
'description': 'Argument to report_error should be a literal string enclosed ' 'description': 'Argument to report_error should be a literal string enclosed '
'by i18n.t()'}, 'by i18n.t()'},