OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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): |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 def CheckChangeOnUpload(input_api, output_api): | 23 def CheckChangeOnUpload(input_api, output_api): |
24 report = [] | 24 report = [] |
25 report.extend(_CommonChecks(input_api, output_api)) | 25 report.extend(_CommonChecks(input_api, output_api)) |
26 return report | 26 return report |
27 | 27 |
28 def CheckChangeOnCommit(input_api, output_api): | 28 def CheckChangeOnCommit(input_api, output_api): |
29 report = [] | 29 report = [] |
30 report.extend(_CommonChecks(input_api, output_api)) | 30 report.extend(_CommonChecks(input_api, output_api)) |
31 return report | 31 return report |
OLD | NEW |