OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """Checks to use in PRESUBMIT.py for general repository violations.""" |
| 6 |
| 7 |
| 8 def RunChecks(input_api, output_api): |
| 9 orig_files = [f.LocalPath() |
| 10 for f in input_api.AffectedFiles(include_deletes=False) |
| 11 if f.LocalPath().endswith('.orig')] |
| 12 if orig_files: |
| 13 return [output_api.PresubmitError( |
| 14 'Files with ".orig" suffix must not be checked into the ' |
| 15 'repository:\n ' + '\n '.join(orig_files))] |
| 16 else: |
| 17 return [] |
OLD | NEW |