Chromium Code Reviews| Index: presubmit_canned_checks.py |
| diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py |
| index 5ed86568fffec4c766f90d8de396673e2ea6fda7..61d231859c51270c2bb81cfc4347948940fdf103 100644 |
| --- a/presubmit_canned_checks.py |
| +++ b/presubmit_canned_checks.py |
| @@ -342,15 +342,18 @@ def CheckLongLines(input_api, output_api, maxlen, source_file_filter=None): |
| CPP_EXCEPTIONS = ('#define', '#endif', '#if', '#include', '#pragma') |
| JAVA_FILE_EXTS = ('java',) |
| JAVA_EXCEPTIONS = ('import ', 'package ') |
| + JS_FILE_EXTS = ('js',) |
| + JS_EXCEPTIONS = ("GEN('#include") |
|
M-A Ruel
2015/10/08 17:39:29
need one there too
Dan Beam
2015/10/08 17:48:06
Done. (also grepped the file for ('[^']+') -- didn
|
| OBJC_FILE_EXTS = ('h', 'm', 'mm') |
| OBJC_EXCEPTIONS = ('#define', '#endif', '#if', '#import', '#include', |
| '#pragma') |
| - PY_FILE_EXTS = ('py') |
| + PY_FILE_EXTS = ('py',) |
| PY_EXCEPTIONS = ('import', 'from') |
| 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), |
| ] |