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

Side by Side Diff: tools/web_dev_style/resource_checker.py

Issue 2890513003: Move chrome/browser/web_dev_style/ to tools/ to use from more places (Closed)
Patch Set: . Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ 5 """
6 Presubmit for Chromium HTML/CSS/JS resources. See chrome/browser/PRESUBMIT.py. 6 Presubmit for Chromium HTML/CSS/JS resources. See chrome/browser/PRESUBMIT.py.
7 """ 7 """
8 8
9 import regex_check 9 import regex_check
10 10
(...skipping 25 matching lines...) Expand all
36 if error: 36 if error:
37 errors.append(error) 37 errors.append(error)
38 38
39 if errors: 39 if errors:
40 abs_local_path = f.AbsoluteLocalPath() 40 abs_local_path = f.AbsoluteLocalPath()
41 file_indicator = 'Found resources style issues in %s' % abs_local_path 41 file_indicator = 'Found resources style issues in %s' % abs_local_path
42 prompt_msg = file_indicator + '\n\n' + '\n'.join(errors) + '\n' 42 prompt_msg = file_indicator + '\n\n' + '\n'.join(errors) + '\n'
43 results.append(self.output_api.PresubmitPromptWarning(prompt_msg)) 43 results.append(self.output_api.PresubmitPromptWarning(prompt_msg))
44 44
45 return results 45 return results
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698