Chromium Code Reviews| Index: presubmit_canned_checks.py |
| diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py |
| index 5ed86568fffec4c766f90d8de396673e2ea6fda7..d287e8b70ff0ca9442116ae1278042f416b2d0b6 100644 |
| --- a/presubmit_canned_checks.py |
| +++ b/presubmit_canned_checks.py |
| @@ -340,8 +340,10 @@ def CheckLongLines(input_api, output_api, maxlen, source_file_filter=None): |
| # superset of CPP_EXCEPTIONS. |
| CPP_FILE_EXTS = ('c', 'cc') |
| CPP_EXCEPTIONS = ('#define', '#endif', '#if', '#include', '#pragma') |
| - JAVA_FILE_EXTS = ('java',) |
| + JAVA_FILE_EXTS = ('java') |
|
M-A Ruel
2015/10/08 12:39:18
keep the comma, it's needed. #thankspython
Dan Beam
2015/10/08 17:28:20
Done.
|
| JAVA_EXCEPTIONS = ('import ', 'package ') |
| + JS_FILE_EXTS = ('js') |
| + JS_EXCEPTIONS = ("GEN('#include") |
| OBJC_FILE_EXTS = ('h', 'm', 'mm') |
| OBJC_EXCEPTIONS = ('#define', '#endif', '#if', '#import', '#include', |
| '#pragma') |
| @@ -351,6 +353,7 @@ def CheckLongLines(input_api, output_api, maxlen, source_file_filter=None): |
| LANGUAGE_EXCEPTIONS = [ |
| (CPP_FILE_EXTS, CPP_EXCEPTIONS), |
| (JAVA_FILE_EXTS, JAVA_EXCEPTIONS), |
| + (JS_FILE_EXTS, JS_EXCEPTIONS), |
| (OBJC_FILE_EXTS, OBJC_EXCEPTIONS), |
| (PY_FILE_EXTS, PY_EXCEPTIONS), |
| ] |