Chromium Code Reviews| Index: chrome/browser/resources/PRESUBMIT.py |
| diff --git a/chrome/browser/resources/PRESUBMIT.py b/chrome/browser/resources/PRESUBMIT.py |
| index 3f14fe793132fc9fe598974787b985d5ab426a49..a1d243c5da0f5f04e9a814660eed981b927607dd 100644 |
| --- a/chrome/browser/resources/PRESUBMIT.py |
| +++ b/chrome/browser/resources/PRESUBMIT.py |
| @@ -91,6 +91,10 @@ def IsBoolean(new_content_lines, metric_name, input_api): |
| any(input_api.re.search(type_re, match.group(i)) for i in (1, 3))) |
| +def CheckHtml(input_api, output_api): |
| + return input_api.canned_checks.CheckLongLines(input_api, output_api, 80) |
|
tommycli
2017/03/06 22:06:15
Read 2nd comment first...
seems a bit redundant t
|
| + |
| + |
| def RunVulcanizeTests(input_api, output_api): |
| presubmit_path = input_api.PresubmitLocalPath() |
| tests = [input_api.os_path.join(presubmit_path, 'vulcanize_gn_test.py')] |
| @@ -100,6 +104,8 @@ def RunVulcanizeTests(input_api, output_api): |
| def _CheckChangeOnUploadOrCommit(input_api, output_api): |
| results = CheckUserActionUpdate(input_api, output_api, ACTION_XML_PATH) |
| affected = input_api.AffectedFiles() |
| + if any(f for f in affected if f.LocalPath().endswith('.html')): |
| + results += CheckHtml(input_api, output_api) |
|
tommycli
2017/03/06 22:06:15
I wonder why this isn't included already via:
http
dschuyler
2017/03/07 01:14:56
Afaik, the canned checks provide functionality, bu
|
| if any(f for f in affected if f.LocalPath().endswith('vulcanize_gn.py')): |
| results += RunVulcanizeTests(input_api, output_api) |
| return results |