Index: ui/PRESUBMIT.py |
diff --git a/ui/PRESUBMIT.py b/ui/PRESUBMIT.py |
index 97d09319975ef01975ab1ef08e48a9f2fc6ae7c9..d8fe08861bcd6a94b008c6ab851902c0fc1f807a 100644 |
--- a/ui/PRESUBMIT.py |
+++ b/ui/PRESUBMIT.py |
@@ -32,12 +32,13 @@ def CheckScopedPtr(input_api, output_api, |
errors.append(output_api.PresubmitError( |
('%s:%d uses explicit scoped_ptr constructor. ' + |
'Use make_scoped_ptr() instead.') % (f.LocalPath(), line_number))) |
+ # TODO(sky): this incorrectly catches templates. Fix and reenable. |
# Disallow: |
# scoped_ptr<T>() |
- if input_api.re.search(r'\bscoped_ptr<.*?>\(\)', line): |
- errors.append(output_api.PresubmitError( |
- '%s:%d uses scoped_ptr<T>(). Use nullptr instead.' % |
- (f.LocalPath(), line_number))) |
+ # if input_api.re.search(r'\bscoped_ptr<.*?>\(\)', line): |
+ # errors.append(output_api.PresubmitError( |
+ # '%s:%d uses scoped_ptr<T>(). Use nullptr instead.' % |
+ # (f.LocalPath(), line_number))) |
return errors |