Chromium Code Reviews| Index: third_party/WebKit/PRESUBMIT.py |
| diff --git a/third_party/WebKit/PRESUBMIT.py b/third_party/WebKit/PRESUBMIT.py |
| index ca89625707527930245d17f28f2dd4f9d588bfc8..bc9ef6f1b6d0d0b12fb23a3958d1baede5b23536 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,24 @@ def _CheckTestExpectations(input_api, output_api): |
| def _CheckStyle(input_api, output_api): |
| + ignore = [ |
|
kinuko
2016/02/04 13:15:54
This 'ignore' variable itself should also have som
hajimehoshi
2016/02/05 07:41:54
Done.
|
| + # These files were moved from Chromium side (crbug/548254). |
| + # TODO(hajimehoshi): We aim to remove these files since these are glue |
| + # files and no longer needed. |
| + 'third_party/WebKit/Source/platform/WebMemoryAllocatorDumpImpl', |
| + 'third_party/WebKit/Source/platform/WebMemoryDumpProviderAdapter', |
| + 'third_party/WebKit/Source/platform/WebProcessMemoryDumpImpl', |
| + ] |
| + 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: |