aboutsummaryrefslogtreecommitdiff
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorMirko Bonadei <mbonadei@webrtc.org>2019-09-05 14:36:42 +0200
committerCommit Bot <commit-bot@chromium.org>2019-09-10 09:42:26 +0000
commit01e97ae1b071b51975d02b1addbe272f6fbbdb15 (patch)
tree6a0e09b80e8deb2f0201cb424327edd951aa9fc3 /PRESUBMIT.py
parent56d89da9cc469f088a4e989ae026737e2af0768d (diff)
downloadwebrtc-01e97ae1b071b51975d02b1addbe272f6fbbdb15.tar.gz
Move docs about native code development into a repo directory.
No-Try: True Bug: None Change-Id: I4a7f3df3547beb85eaabe90a9d059da32cc64261 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/151303 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29129}
Diffstat (limited to 'PRESUBMIT.py')
-rwxr-xr-xPRESUBMIT.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 7edc249ebd..d838bfd42b 100755
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -910,13 +910,14 @@ def CheckApiDepsFileIsUpToDate(input_api, output_api):
deps_content = _ParseDeps(f.read())
include_rules = deps_content.get('include_rules', [])
+ dirs_to_skip = set(['api', 'docs'])
# Only check top level directories affected by the current CL.
dirs_to_check = set()
for f in input_api.AffectedFiles():
path_tokens = [t for t in f.LocalPath().split(os.sep) if t]
if len(path_tokens) > 1:
- if (path_tokens[0] != 'api' and
+ if (path_tokens[0] not in dirs_to_skip and
os.path.isdir(os.path.join(input_api.PresubmitLocalPath(),
path_tokens[0]))):
dirs_to_check.add(path_tokens[0])