Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: third_party/WebKit/PRESUBMIT.py

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/ASCIICType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PRESUBMIT.py
diff --git a/third_party/WebKit/PRESUBMIT.py b/third_party/WebKit/PRESUBMIT.py
index ca89625707527930245d17f28f2dd4f9d588bfc8..11ee6cfa857f37baee491923141bebd1e07a7c67 100644
--- a/third_party/WebKit/PRESUBMIT.py
+++ b/third_party/WebKit/PRESUBMIT.py
@@ -8,6 +8,7 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into gcl.
"""
+import os
import sys
@@ -113,11 +114,22 @@ def _CheckTestExpectations(input_api, output_api):
def _CheckStyle(input_api, output_api):
+ # Files in these directories aren't checked by check-webkit-style because
+ # they're checked by clang-format instead.
+ ignore = [
+ 'third_party/WebKit/Source/wtf/',
+ ]
+
+ files = []
+ for f in input_api.AffectedFiles():
+ if any([f.LocalPath().startswith(os.path.normpath(d)) for d in ignore]):
+ continue
+ files.append(f.LocalPath())
+
style_checker_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
'Tools', 'Scripts', 'check-webkit-style')
args = ([input_api.python_executable, style_checker_path, '--diff-files']
- + [input_api.os_path.join('..', '..', f.LocalPath())
- for f in input_api.AffectedFiles()])
+ + [input_api.os_path.join('..', '..', f) for f in files])
results = []
try:
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/ASCIICType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698