lint: Exclude frontend_tests/node_tests from $().text rule.

This commit is contained in:
Joshua Pan 2018-07-20 11:23:02 -07:00 committed by Tim Abbott
parent ccba727919
commit 0596632457
1 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,8 @@ def build_custom_checkers(by_lang):
'tools/generate-custom-icon-webfont']),
'description': 'console.log and similar should not be used in webapp'},
{'pattern': r'''[.]text\(["'][a-zA-Z]''',
'description': 'Strings passed to $().text should be wrapped in i18n.t() for internationalization'},
'description': 'Strings passed to $().text should be wrapped in i18n.t() for internationalization',
'exclude': set(['frontend_tests/node_tests/'])},
{'pattern': r'''compose_error\(["']''',
'description': 'Argument to compose_error should be a literal string enclosed '
'by i18n.t()'},