OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Top-level presubmit script for Chromium. | 5 """Top-level presubmit script for Chromium. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into depot_tools. | 8 for more details about the presubmit API built into depot_tools. |
9 """ | 9 """ |
10 | 10 |
11 | 11 |
12 _EXCLUDED_PATHS = ( | 12 _EXCLUDED_PATHS = ( |
13 r"^breakpad[\\\/].*", | 13 r"^breakpad[\\\/].*", |
14 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_rules.py", | 14 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_rules.py", |
15 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_simple.py", | 15 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_simple.py", |
16 r"^native_client_sdk[\\\/]src[\\\/]tools[\\\/].*.mk", | 16 r"^native_client_sdk[\\\/]src[\\\/]tools[\\\/].*.mk", |
17 r"^net[\\\/]tools[\\\/]spdyshark[\\\/].*", | 17 r"^net[\\\/]tools[\\\/]spdyshark[\\\/].*", |
18 r"^skia[\\\/].*", | 18 r"^skia[\\\/].*", |
19 r"^third_party[\\\/]WebKit[\\\/].*", | 19 r"^third_party[\\\/]WebKit[\\\/].*", |
20 r"^v8[\\\/].*", | 20 r"^v8[\\\/].*", |
21 r".*MakeFile$", | 21 r".*MakeFile$", |
22 r".+_autogen\.h$", | 22 r".+_autogen\.h$", |
23 r".+[\\\/]pnacl_shim\.c$", | 23 r".+[\\\/]pnacl_shim\.c$", |
24 r"^gpu[\\\/]config[\\\/].*_list_json\.cc$", | 24 r"^gpu[\\\/]config[\\\/].*_list_json\.cc$", |
25 r"^chrome[\\\/]browser[\\\/]resources[\\\/]pdf[\\\/]index.js", | 25 r"^chrome[\\\/]browser[\\\/]resources[\\\/]pdf[\\\/]index.js", |
| 26 r".*vulcanized.html$", |
| 27 r".*crisper.js$", |
26 ) | 28 ) |
27 | 29 |
28 | 30 |
29 # The NetscapePlugIn library is excluded from pan-project as it will soon | 31 # The NetscapePlugIn library is excluded from pan-project as it will soon |
30 # be deleted together with the rest of the NPAPI and it's not worthwhile to | 32 # be deleted together with the rest of the NPAPI and it's not worthwhile to |
31 # update the coding style until then. | 33 # update the coding style until then. |
32 _TESTRUNNER_PATHS = ( | 34 _TESTRUNNER_PATHS = ( |
33 r"^content[\\\/]shell[\\\/]tools[\\\/]plugin[\\\/].*", | 35 r"^content[\\\/]shell[\\\/]tools[\\\/]plugin[\\\/].*", |
34 ) | 36 ) |
35 | 37 |
(...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2253 results.extend(input_api.canned_checks.CheckTreeIsOpen( | 2255 results.extend(input_api.canned_checks.CheckTreeIsOpen( |
2254 input_api, | 2256 input_api, |
2255 output_api, | 2257 output_api, |
2256 json_url='http://chromium-status.appspot.com/current?format=json')) | 2258 json_url='http://chromium-status.appspot.com/current?format=json')) |
2257 | 2259 |
2258 results.extend(input_api.canned_checks.CheckChangeHasBugField( | 2260 results.extend(input_api.canned_checks.CheckChangeHasBugField( |
2259 input_api, output_api)) | 2261 input_api, output_api)) |
2260 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 2262 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
2261 input_api, output_api)) | 2263 input_api, output_api)) |
2262 return results | 2264 return results |
OLD | NEW |