| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 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 import os | 4 import os |
| 5 import sys | 5 import sys |
| 6 | 6 |
| 7 PYLINT_BLACKLIST = [] | 7 PYLINT_BLACKLIST = [] |
| 8 PYLINT_DISABLED_WARNINGS = ['R0923', 'R0201', 'E1101'] | 8 PYLINT_DISABLED_WARNINGS = ['R0923', 'R0201', 'E1101'] |
| 9 | 9 |
| 10 def _CommonChecks(input_api, output_api): | 10 def _CommonChecks(input_api, output_api): |
| 11 results = [] | 11 results = [] |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 results.extend(_CommonChecks(input_api, output_api)) | 50 results.extend(_CommonChecks(input_api, output_api)) |
| 51 return results | 51 return results |
| 52 return RunWithPrependedPath(GetPathsToPrepend(input_api), go) | 52 return RunWithPrependedPath(GetPathsToPrepend(input_api), go) |
| 53 | 53 |
| 54 def CheckChangeOnCommit(input_api, output_api): | 54 def CheckChangeOnCommit(input_api, output_api): |
| 55 def go(): | 55 def go(): |
| 56 results = [] | 56 results = [] |
| 57 results.extend(_CommonChecks(input_api, output_api)) | 57 results.extend(_CommonChecks(input_api, output_api)) |
| 58 return results | 58 return results |
| 59 return RunWithPrependedPath(GetPathsToPrepend(input_api), go) | 59 return RunWithPrependedPath(GetPathsToPrepend(input_api), go) |
| OLD | NEW |