| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 """Presubmit script for Chromium JS resources. | 5 """Presubmit script for Chromium JS resources. |
| 6 | 6 |
| 7 See chrome/browser/PRESUBMIT.py | 7 See chrome/browser/PRESUBMIT.py |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 import regex_check | 10 import regex_check |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 'Found JavaScript style violations in %s:' % | 120 'Found JavaScript style violations in %s:' % |
| 121 f.LocalPath()] + error_lines | 121 f.LocalPath()] + error_lines |
| 122 results.append(self.output_api.PresubmitError('\n'.join(error_lines))) | 122 results.append(self.output_api.PresubmitError('\n'.join(error_lines))) |
| 123 | 123 |
| 124 if results: | 124 if results: |
| 125 results.append(self.output_api.PresubmitNotifyResult( | 125 results.append(self.output_api.PresubmitNotifyResult( |
| 126 'See the JavaScript style guide at ' | 126 'See the JavaScript style guide at ' |
| 127 'https://chromium.googlesource.com/chromium/src/+/master/styleguide/we
b/web.md#JavaScript')) | 127 'https://chromium.googlesource.com/chromium/src/+/master/styleguide/we
b/web.md#JavaScript')) |
| 128 | 128 |
| 129 return results | 129 return results |
| OLD | NEW |