OLD | NEW |
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 resources. See chrome/browser/PRESUBMIT.py. | 6 Presubmit for Chromium HTML resources. See chrome/browser/PRESUBMIT.py. |
7 """ | 7 """ |
8 | 8 |
9 import regex_check | 9 import regex_check |
10 | 10 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 self.QuotePolymerBindings(line_number, line), | 107 self.QuotePolymerBindings(line_number, line), |
108 ])) | 108 ])) |
109 | 109 |
110 if errors: | 110 if errors: |
111 abs_local_path = f.AbsoluteLocalPath() | 111 abs_local_path = f.AbsoluteLocalPath() |
112 file_indicator = 'Found HTML style issues in %s' % abs_local_path | 112 file_indicator = 'Found HTML style issues in %s' % abs_local_path |
113 prompt_msg = file_indicator + '\n\n' + '\n'.join(errors) + '\n' | 113 prompt_msg = file_indicator + '\n\n' + '\n'.join(errors) + '\n' |
114 results.append(self.output_api.PresubmitPromptWarning(prompt_msg)) | 114 results.append(self.output_api.PresubmitPromptWarning(prompt_msg)) |
115 | 115 |
116 return results | 116 return results |
OLD | NEW |