OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 """ | 5 """ |
6 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for | 6 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for |
7 details on the presubmit API built into gcl. | 7 details on the presubmit API built into gcl. |
8 """ | 8 """ |
9 | 9 |
10 SOURCE_FILES = (r'^.*\.(cc|h)$') | 10 SOURCE_FILES = (r'^.*\.(cc|h)$') |
(...skipping 13 matching lines...) Expand all Loading... |
24 return [] | 24 return [] |
25 | 25 |
26 return [output_api.PresubmitPromptWarning( | 26 return [output_api.PresubmitPromptWarning( |
27 'Changelist failed cpplint.py check.')] | 27 'Changelist failed cpplint.py check.')] |
28 | 28 |
29 | 29 |
30 def CheckChangeOnUpload(input_api, output_api): | 30 def CheckChangeOnUpload(input_api, output_api): |
31 results = [] | 31 results = [] |
32 results += CheckChangeLintsClean(input_api, output_api) | 32 results += CheckChangeLintsClean(input_api, output_api) |
33 return results | 33 return results |
OLD | NEW |