OLD | NEW |
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import json | 9 import json |
10 import os | 10 import os |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 r".*objc\.[hcm]+$", | 430 r".*objc\.[hcm]+$", |
431 r"webrtc\/build\/ios\/SDK\/.*", | 431 r"webrtc\/build\/ios\/SDK\/.*", |
432 ) | 432 ) |
433 source_file_filter = lambda x: input_api.FilterSourceFile(x, None, black_list) | 433 source_file_filter = lambda x: input_api.FilterSourceFile(x, None, black_list) |
434 results.extend(_CheckApprovedFilesLintClean( | 434 results.extend(_CheckApprovedFilesLintClean( |
435 input_api, output_api, source_file_filter)) | 435 input_api, output_api, source_file_filter)) |
436 results.extend(input_api.canned_checks.RunPylint(input_api, output_api, | 436 results.extend(input_api.canned_checks.RunPylint(input_api, output_api, |
437 black_list=(r'^base[\\\/].*\.py$', | 437 black_list=(r'^base[\\\/].*\.py$', |
438 r'^build[\\\/].*\.py$', | 438 r'^build[\\\/].*\.py$', |
439 r'^buildtools[\\\/].*\.py$', | 439 r'^buildtools[\\\/].*\.py$', |
| 440 r'^ios[\\\/].*\.py$', |
440 r'^out.*[\\\/].*\.py$', | 441 r'^out.*[\\\/].*\.py$', |
441 r'^testing[\\\/].*\.py$', | 442 r'^testing[\\\/].*\.py$', |
442 r'^third_party[\\\/].*\.py$', | 443 r'^third_party[\\\/].*\.py$', |
443 r'^tools[\\\/].*\.py$', | 444 r'^tools[\\\/].*\.py$', |
444 # TODO(phoglund): should arguably be checked. | 445 # TODO(phoglund): should arguably be checked. |
445 r'^tools-webrtc[\\\/]mb[\\\/].*\.py$', | 446 r'^tools-webrtc[\\\/]mb[\\\/].*\.py$', |
446 r'^tools-webrtc[\\\/]valgrind[\\\/].*\.py$', | 447 r'^tools-webrtc[\\\/]valgrind[\\\/].*\.py$', |
447 r'^xcodebuild.*[\\\/].*\.py$',), | 448 r'^xcodebuild.*[\\\/].*\.py$',), |
448 disabled_warnings=['F0401', # Failed to import x | 449 disabled_warnings=['F0401', # Failed to import x |
449 'E0611', # No package y in x | 450 'E0611', # No package y in x |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 input_api, output_api)) | 507 input_api, output_api)) |
507 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 508 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
508 input_api, output_api)) | 509 input_api, output_api)) |
509 results.extend(_CheckChangeHasBugField(input_api, output_api)) | 510 results.extend(_CheckChangeHasBugField(input_api, output_api)) |
510 results.extend(input_api.canned_checks.CheckChangeHasTestField( | 511 results.extend(input_api.canned_checks.CheckChangeHasTestField( |
511 input_api, output_api)) | 512 input_api, output_api)) |
512 results.extend(input_api.canned_checks.CheckTreeIsOpen( | 513 results.extend(input_api.canned_checks.CheckTreeIsOpen( |
513 input_api, output_api, | 514 input_api, output_api, |
514 json_url='http://webrtc-status.appspot.com/current?format=json')) | 515 json_url='http://webrtc-status.appspot.com/current?format=json')) |
515 return results | 516 return results |
OLD | NEW |