mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
@@ -282,10 +282,8 @@ def build_custom_checkers(by_lang):
|
||||
'frontend_tests/node_tests',
|
||||
'static/js/debug.js']),
|
||||
'description': 'console.log and similar should not be used in webapp'},
|
||||
{'pattern': 'button\.text\(["\']',
|
||||
'exclude': set(['tools/lint-all',
|
||||
'frontend_tests/node_tests/templates.js']),
|
||||
'description': 'Argument to button.text should be a literal string enclosed by i18n.t()'},
|
||||
{'pattern': '[.]text\(["\'][a-zA-Z]',
|
||||
'description': 'Strings passed to $().text should be wrapped in i18n.t() for internationalization'},
|
||||
{'pattern': 'compose_error\(["\']',
|
||||
'exclude': set(['tools/lint-all']),
|
||||
'description': 'Argument to compose_error should be a literal string enclosed '
|
||||
|
||||
Reference in New Issue
Block a user