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

Issue 12845013: Adding _Check* function for invalid OS_MACROs in src/PRESUBMIT.py (Closed)

Created:
7 years, 9 months ago by Dan Beam
Modified:
7 years, 9 months ago
CC:
chromium-reviews, darin (slow to review), Mark Mentovai, scottmg, groby-ooo-7-16
Visibility:
Public.

Description

Adding _Check* function for invalid OS_MACROs in src/PRESUBMIT.py R=maruel@chromium.org BUG=none CONTEXT=http://goo.gl/hrlj1 TEST=PRESUBMIT_test.py and less OS_MAXOSX! NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190693

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 3

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 7

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 4

Patch Set 12 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -1 line) Patch
M PRESUBMIT.py View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +70 lines, -0 lines 0 comments Download
M PRESUBMIT_test.py View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
Dan Beam
7 years, 9 months ago (2013-03-21 03:51:42 UTC) #1
Scott Hess - ex-Googler
Just FYI, as I'm not sure what the standards of evidence are for presubmit checks. ...
7 years, 9 months ago (2013-03-21 04:20:00 UTC) #2
Dan Beam
https://codereview.chromium.org/12845013/diff/4001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/12845013/diff/4001/PRESUBMIT.py#newcode832 PRESUBMIT.py:832: pattern = input_api.re.compile(r'\b(OS_[A-Z]{3,})\b') On 2013/03/21 04:20:00, shess wrote: > ...
7 years, 9 months ago (2013-03-21 04:29:09 UTC) #3
Dan Beam
shess@: alright, check out the updated patch, it narrows the scope a bit (mainly out ...
7 years, 9 months ago (2013-03-21 04:42:15 UTC) #4
Scott Hess - ex-Googler
On 2013/03/21 04:42:15, Dan Beam wrote: > shess@: alright, check out the updated patch, it ...
7 years, 9 months ago (2013-03-21 05:03:50 UTC) #5
Dan Beam
should we be fixing these, then? https://gist.github.com/danbeam/97416bccd7a6c342a8dc
7 years, 9 months ago (2013-03-21 15:19:17 UTC) #6
Dan Beam
On 2013/03/21 15:19:17, Dan Beam wrote: > should we be fixing these, then? > https://gist.github.com/danbeam/97416bccd7a6c342a8dc ...
7 years, 9 months ago (2013-03-21 16:01:42 UTC) #7
M-A Ruel
https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py#newcode831 PRESUBMIT.py:831: starts_with = input_api.re.compile(r'#(?:else|(?:el|end)?if(?:n?def)?)') I agree with Scott the regexp ...
7 years, 9 months ago (2013-03-22 12:41:14 UTC) #8
Dan Beam
https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py#newcode362 PRESUBMIT.py:362: pattern = input_api.re.compile(r'^#pragma\s+once', # pragma ? https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py#newcode831 PRESUBMIT.py:831: starts_with ...
7 years, 9 months ago (2013-03-22 18:29:02 UTC) #9
Dan Beam
https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py#newcode831 PRESUBMIT.py:831: starts_with = input_api.re.compile(r'#(?:else|(?:el|end)?if(?:n?def)?)') On 2013/03/22 18:29:02, Dan Beam wrote: ...
7 years, 9 months ago (2013-03-22 18:32:22 UTC) #10
M-A Ruel
https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py#newcode362 PRESUBMIT.py:362: pattern = input_api.re.compile(r'^#pragma\s+once', On 2013/03/22 18:29:02, Dan Beam wrote: ...
7 years, 9 months ago (2013-03-22 18:33:11 UTC) #11
Dan Beam
https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/12845013/diff/11001/PRESUBMIT.py#newcode831 PRESUBMIT.py:831: starts_with = input_api.re.compile(r'#(?:else|(?:el|end)?if(?:n?def)?)') On 2013/03/22 12:41:15, Marc-Antoine Ruel wrote: ...
7 years, 9 months ago (2013-03-22 18:48:02 UTC) #12
Dan Beam
On 2013/03/21 16:01:42, Dan Beam wrote: > On 2013/03/21 15:19:17, Dan Beam wrote: > > ...
7 years, 9 months ago (2013-03-25 05:33:31 UTC) #13
Dan Beam
ping
7 years, 9 months ago (2013-03-26 02:37:31 UTC) #14
Scott Hess - ex-Googler
LGTM. I probably wouldn't even bother with the # check, the whole sequence is pretty ...
7 years, 9 months ago (2013-03-26 02:45:46 UTC) #15
Dan Beam
https://chromiumcodereview.appspot.com/12845013/diff/24001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/12845013/diff/24001/PRESUBMIT.py#newcode854 PRESUBMIT.py:854: 'src/PRESUBMIT.py or update your code.', bad_macros)] On 2013/03/26 02:45:46, ...
7 years, 9 months ago (2013-03-26 03:46:03 UTC) #16
Scott Hess - ex-Googler
On 2013/03/26 03:46:03, Dan Beam wrote: > https://chromiumcodereview.appspot.com/12845013/diff/24001/PRESUBMIT.py > File PRESUBMIT.py (right): > > https://chromiumcodereview.appspot.com/12845013/diff/24001/PRESUBMIT.py#newcode854 ...
7 years, 9 months ago (2013-03-26 03:52:28 UTC) #17
M-A Ruel
https://chromiumcodereview.appspot.com/12845013/diff/34001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/12845013/diff/34001/PRESUBMIT.py#newcode842 PRESUBMIT.py:842: except: except KeyError: https://chromiumcodereview.appspot.com/12845013/diff/34001/PRESUBMIT.py#newcode871 PRESUBMIT.py:871: return [] if not ...
7 years, 9 months ago (2013-03-26 13:30:51 UTC) #18
Dan Beam
https://chromiumcodereview.appspot.com/12845013/diff/34001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/12845013/diff/34001/PRESUBMIT.py#newcode842 PRESUBMIT.py:842: except: On 2013/03/26 13:30:51, Marc-Antoine Ruel wrote: > except ...
7 years, 9 months ago (2013-03-26 16:18:51 UTC) #19
M-A Ruel
lgtm
7 years, 9 months ago (2013-03-26 16:19:49 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/12845013/38001
7 years, 9 months ago (2013-03-26 16:20:45 UTC) #21
commit-bot: I haz the power
7 years, 9 months ago (2013-03-26 16:21:56 UTC) #22
Message was sent while issue was closed.
Change committed as 190693

Powered by Google App Engine
This is Rietveld 408576698