Chromium Code Reviews
Help | Chromium Project | Sign in
(50)

Issue 3082016: Add a presubmit check that catches |const NSString*| and friends. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 10 months ago by Nico
Modified:
4 years ago
Reviewers:
M-A Ruel, jeremy
CC:
chromium-reviews
Visibility:
Public.

Description

Add a presubmit check that catches |const NSString*| and friends. BUG=TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54925

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Total comments: 13

Patch Set 3 : address comments #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : search instead of find #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M PRESUBMIT.py View 1 2 3 4 2 chunks +23 lines, -0 lines 0 comments Download
Commit: CQ not working?

Messages

Total messages: 7 (0 generated)
Nico
Jeremy asked for this long, long ago. I should've listened back then, would've saved me ...
4 years, 10 months ago (2010-08-03 22:18:16 UTC) #1
jeremy
Didn't check style, some minor comments. http://codereview.chromium.org/3082016/diff/1/2 File PRESUBMIT.py (right): http://codereview.chromium.org/3082016/diff/1/2#newcode36 PRESUBMIT.py:36: pattern = re.compile(r'const ...
4 years, 10 months ago (2010-08-03 22:27:22 UTC) #2
M-A Ruel
I don't think BUG=TEST=none works. http://codereview.chromium.org/3082016/diff/3001/4001 File PRESUBMIT.py (right): http://codereview.chromium.org/3082016/diff/3001/4001#newcode11 PRESUBMIT.py:11: import re remove, use ...
4 years, 10 months ago (2010-08-04 00:24:26 UTC) #3
Nico
thanks, guys! http://codereview.chromium.org/3082016/diff/1/2 File PRESUBMIT.py (right): http://codereview.chromium.org/3082016/diff/1/2#newcode36 PRESUBMIT.py:36: pattern = re.compile(r'const NS\w*\ ?\*') On 2010/08/03 ...
4 years, 10 months ago (2010-08-04 04:46:59 UTC) #4
M-A Ruel
lgtm http://codereview.chromium.org/3082016/diff/3001/4001 File PRESUBMIT.py (right): http://codereview.chromium.org/3082016/diff/3001/4001#newcode11 PRESUBMIT.py:11: import re On 2010/08/04 04:46:59, Nico wrote: > ...
4 years, 10 months ago (2010-08-04 13:47:44 UTC) #5
jeremy
LGTM
4 years, 10 months ago (2010-08-04 16:42:34 UTC) #6
Nico
4 years, 10 months ago (2010-08-04 17:44:52 UTC) #7
http://codereview.chromium.org/3082016/diff/10001/11001
File PRESUBMIT.py (right):

http://codereview.chromium.org/3082016/diff/10001/11001#newcode39
PRESUBMIT.py:39: if pattern.match(contents):
(turns out this needs to be |.search|, not |.match|)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be