Chromium Code Reviews| Index: cc/PRESUBMIT.py |
| diff --git a/cc/PRESUBMIT.py b/cc/PRESUBMIT.py |
| index dc826b1218cc0b5f53dd66d8469cb9b918e1dd50..ad34d7ceb125d4f02ca5348f5ffb5dd9ba7abb49 100644 |
| --- a/cc/PRESUBMIT.py |
| +++ b/cc/PRESUBMIT.py |
| @@ -17,18 +17,9 @@ def CheckChangeLintsClean(input_api, output_api): |
| input_api.cpplint._cpplint_state.ResetErrorCounts() # reset global state |
| source_filter = lambda x: input_api.FilterSourceFile( |
| x, white_list=CC_SOURCE_FILES, black_list=None) |
| - files = [f.AbsoluteLocalPath() for f in |
|
tfarina
2015/02/24 01:50:23
This code is basically repeating what CheckChangeL
|
| - input_api.AffectedSourceFiles(source_filter)] |
| - level = 1 # strict, but just warn |
| - for file_name in files: |
| - input_api.cpplint.ProcessFile(file_name, level) |
| - |
| - if not input_api.cpplint._cpplint_state.error_count: |
| - return [] |
| - |
| - return [output_api.PresubmitPromptWarning( |
| - 'Changelist failed cpplint.py check.')] |
| + return input_api.canned_checks.CheckChangeLintsClean( |
|
tfarina
2015/02/24 01:50:24
Is this OK?
|
| + input_api, output_api, source_filter, []) |
| def CheckAsserts(input_api, output_api, white_list=CC_SOURCE_FILES, black_list=None): |
| black_list = tuple(black_list or input_api.DEFAULT_BLACK_LIST) |