57e5fd2e60
Add pylintrc file based on https://code.google.com/p/chromium/codesearch#chromium/src/tools/perf/pylintrc bit tightened up quite a bit (the one in depot_tools is far more relaxed). Remove a few excluded directories from pylint check and fixed/ suppressed all warnings generated. Add GN format check + formatted all GN files using 'gn format'. Cleanup redundant rules in tools/PRESUBMIT.py TESTED=Ran 'git cl presubmit -vv', fixed the PyLint violations. Ran it again with a modification in webrtc/build/webrtc.gni, formatted all the GN files and ran it again. R=henrika@webrtc.org, phoglund@webrtc.org Review URL: https://webrtc-codereview.appspot.com/50069004 Cr-Commit-Position: refs/heads/master@{#9274}
47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
# The location of the build configuration file.
|
|
buildconfig = "//build/config/BUILDCONFIG.gn"
|
|
|
|
# The secondary source root is a parallel directory tree where
|
|
# GN build files are placed when they can not be placed directly
|
|
# in the source tree, e.g. for third party source trees.
|
|
secondary_source = "//build/secondary/"
|
|
|
|
# These are the targets to check headers for by default. The files in targets
|
|
# matching these patterns (see "gn help label_pattern" for format) will have
|
|
# their includes checked for proper dependencies when you run either
|
|
# "gn check" or "gn gen --check".
|
|
check_targets = [ "//webrtc/*" ]
|
|
|
|
# These are the list of GN files that run exec_script. This whitelist exists
|
|
# to force additional review for new uses of exec_script, which is strongly
|
|
# discouraged except for gypi_to_gn calls.
|
|
exec_script_whitelist = [
|
|
"//build/config/android/BUILD.gn",
|
|
"//build/config/android/config.gni",
|
|
"//build/config/android/internal_rules.gni",
|
|
"//build/config/android/rules.gni",
|
|
"//build/config/compiler/BUILD.gn",
|
|
"//build/config/gcc/gcc_version.gni",
|
|
"//build/config/ios/ios_sdk.gni",
|
|
"//build/config/linux/BUILD.gn",
|
|
"//build/config/linux/pkg_config.gni",
|
|
"//build/config/mac/mac_sdk.gni",
|
|
"//build/config/win/visual_studio_version.gni",
|
|
"//build/gn_helpers.py",
|
|
"//build/gypi_to_gn.py",
|
|
"//build/toolchain/gcc_toolchain.gni",
|
|
"//build/toolchain/mac/BUILD.gn",
|
|
"//build/toolchain/win/BUILD.gn",
|
|
"//third_party/boringssl/BUILD.gn",
|
|
"//third_party/opus/BUILD.gn",
|
|
"//webrtc/modules/video_render/BUILD.gn",
|
|
]
|