diff --git a/tools/lint-all b/tools/lint-all index 5db725ffab..8dd9b5cb31 100755 --- a/tools/lint-all +++ b/tools/lint-all @@ -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()'},