diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index 1fc8d30d36..efbd0e2350 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -153,7 +153,10 @@ js_rules = RuleList( { "pattern": r"""[.]text\(["'][a-zA-Z]""", "description": "Strings passed to $().text should be wrapped in $t() for internationalization", - "exclude": {"web/tests/"}, + "exclude": { + "web/tests/", + "web/src/billing/", + }, }, { "pattern": r"""report.success\(["']""", @@ -549,6 +552,7 @@ html_rules: List["Rule"] = [ "exclude": { "templates/analytics/support.html", "templates/analytics/remote_server_support.html", + "templates/corporate", # We have URL template and Pygments language name as placeholders # in the below template which we don't want to be translatable. "web/templates/settings/playground_settings_admin.hbs", @@ -579,6 +583,9 @@ html_rules: List["Rule"] = [ '' ], "bad_lines": [""], + "exclude": { + "templates/corporate", + }, }, { "pattern": "aria-label='[^{]",