Skip to content

Commit

Permalink
Remove unnecessary _CheckCSSViolations check
Browse files Browse the repository at this point in the history
These selectors are already removed from Blink and therefore no longer
work.

[email protected]

Change-Id: I3131d3cf5cb27eafa13e07ba65b87fc77e8dbae1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2087767
Commit-Queue: Tim van der Lippe <[email protected]>
Reviewed-by: Jack Franklin <[email protected]>
  • Loading branch information
TimvdLippe authored and Commit Bot committed Mar 6, 2020
1 parent fd873e7 commit 251715e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,6 @@ def _CheckOptimizeSVGHashes(input_api, output_api):
return results


def _CheckCSSViolations(input_api, output_api):
results = [output_api.PresubmitNotifyResult('Running CSS Violation Check:')]
for f in input_api.AffectedFiles(include_deletes=False):
if not f.LocalPath().endswith('.css'):
continue
for line_number, line in f.ChangedContents():
if '/deep/' in line:
results.append(output_api.PresubmitError(('%s:%d uses /deep/ selector') % (f.LocalPath(), line_number)))
if '::shadow' in line:
results.append(output_api.PresubmitError(('%s:%d uses ::shadow selector') % (f.LocalPath(), line_number)))
return results


def _CheckGeneratedFiles(input_api, output_api):
v8_directory_path = input_api.os_path.join(input_api.PresubmitLocalPath(), 'v8')
Expand Down Expand Up @@ -288,7 +276,6 @@ def _CommonChecks(input_api, output_api):
results.extend(_CheckDevtoolsStyle(input_api, output_api))
results.extend(_CheckFormat(input_api, output_api))
results.extend(_CheckOptimizeSVGHashes(input_api, output_api))
results.extend(_CheckCSSViolations(input_api, output_api))
results.extend(_CheckChangesAreExclusiveToDirectory(input_api, output_api))
results.extend(_CheckNoUncheckedFiles(input_api, output_api))
results.extend(_CheckForTooLargeFiles(input_api, output_api))
Expand Down

0 comments on commit 251715e

Please sign in to comment.