| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 """Makes sure that the chrome/ code is cpplint clean.""" | 5 """Makes sure that the chrome/ code is cpplint clean.""" |
| 6 | 6 |
| 7 INCLUDE_CPP_FILES_ONLY = ( | 7 INCLUDE_CPP_FILES_ONLY = ( |
| 8 r'.*\.cc$', r'.*\.h$' | 8 r'.*\.cc$', r'.*\.h$' |
| 9 ) | 9 ) |
| 10 | 10 |
| 11 EXCLUDE = ( | 11 EXCLUDE = ( |
| (...skipping 29 matching lines...) Expand all Loading... |
| 41 ) | 41 ) |
| 42 | 42 |
| 43 def CheckChangeOnUpload(input_api, output_api): | 43 def CheckChangeOnUpload(input_api, output_api): |
| 44 results = [] | 44 results = [] |
| 45 black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE | 45 black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE |
| 46 sources = lambda x: input_api.FilterSourceFile( | 46 sources = lambda x: input_api.FilterSourceFile( |
| 47 x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list) | 47 x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list) |
| 48 results.extend(input_api.canned_checks.CheckChangeLintsClean( | 48 results.extend(input_api.canned_checks.CheckChangeLintsClean( |
| 49 input_api, output_api, sources)) | 49 input_api, output_api, sources)) |
| 50 return results | 50 return results |
| OLD | NEW |