| OLD | NEW |
| 1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Top-level presubmit script for LUCI. | 5 """Top-level presubmit script for LUCI. |
| 6 | 6 |
| 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for |
| 8 details on the presubmit API built into gcl. | 8 details on the presubmit API built into gcl. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 r'.+-build\.(js|html)$', | 31 r'.+-build\.(js|html)$', |
| 32 r'.+/build/.+(js|html)$', | 32 r'.+/build/.+(js|html)$', |
| 33 r'/test', | 33 r'/test', |
| 34 r'.+_pb2\.py$', | 34 r'.+_pb2\.py$', |
| 35 r'.+_pb2_grpc\.py$', | 35 r'.+_pb2_grpc\.py$', |
| 36 r'.*third_party.*', | 36 r'.*third_party.*', |
| 37 ] | 37 ] |
| 38 return input_api.canned_checks.PanProjectChecks( | 38 return input_api.canned_checks.PanProjectChecks( |
| 39 input_api, output_api, | 39 input_api, output_api, |
| 40 excluded_paths=excluded, | 40 excluded_paths=excluded, |
| 41 owners_check=False, | |
| 42 license_header=header(input_api)) | 41 license_header=header(input_api)) |
| 43 | 42 |
| 44 | 43 |
| 45 def CheckChangeOnUpload(input_api, output_api): | 44 def CheckChangeOnUpload(input_api, output_api): |
| 46 return CommonChecks(input_api, output_api) | 45 return CommonChecks(input_api, output_api) |
| 47 | 46 |
| 48 | 47 |
| 49 def CheckChangeOnCommit(input_api, output_api): | 48 def CheckChangeOnCommit(input_api, output_api): |
| 50 return CommonChecks(input_api, output_api) | 49 return CommonChecks(input_api, output_api) |
| OLD | NEW |