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

Issue 20474: Very basic starter presubmit script for Chromium, as requested by maruel.... (Closed)

Created:
11 years, 10 months ago by Jói Sigurðsson
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Very basic starter presubmit script for Chromium, as requested by maruel. At present this checks the following: - No tabs in source files - The words "DO-NOT-SUBMIT" (without the dashes) do not appear in the CL description or in files in the change - No CRLF in source files (.cc, .h, .mm, .py) Limitations: - The general limitations of the current presubmit API implementation apply. One of these is that gcl only walks up to the checkout root searching for presubmit files, so if you've mapped stuff into your client using DEPS, it will only walk up to where the root of that mapping. Checked in as revision 10015.

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -0 lines) Patch
A PRESUBMIT.py View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A PRESUBMIT_unittest.py View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jói Sigurðsson
11 years, 10 months ago (2009-02-18 22:44:33 UTC) #1
M-A Ruel
lgtm with nits. As you prefer, they are optional. http://codereview.chromium.org/20474/diff/1/3 File PRESUBMIT.py (right): http://codereview.chromium.org/20474/diff/1/3#newcode51 Line ...
11 years, 10 months ago (2009-02-19 00:52:49 UTC) #2
Jói Sigurðsson
New version uploaded to address one of your nits :) http://codereview.chromium.org/20474/diff/1/3 File PRESUBMIT.py (right): http://codereview.chromium.org/20474/diff/1/3#newcode51 ...
11 years, 10 months ago (2009-02-19 01:43:54 UTC) #3
Pam (message me for reviews)
Drive-by... http://codereview.chromium.org/20474/diff/5/1007 File PRESUBMIT.py (right): http://codereview.chromium.org/20474/diff/5/1007#newcode17 Line 17: SOURCE_FILE_EXTENSIONS = ['.cc', '.h', '.mm', '.py'] Please ...
11 years, 10 months ago (2009-02-19 01:47:49 UTC) #4
Jói Sigurðsson
Thanks Pam. http://codereview.chromium.org/20474/diff/5/1007 File PRESUBMIT.py (right): http://codereview.chromium.org/20474/diff/5/1007#newcode17 Line 17: SOURCE_FILE_EXTENSIONS = ['.cc', '.h', '.mm', '.py'] ...
11 years, 10 months ago (2009-02-19 01:54:55 UTC) #5
M-A Ruel
lgtm
11 years, 10 months ago (2009-02-19 12:29:19 UTC) #6
Mark Mentovai
http://codereview.chromium.org/20474/diff/8/10 File PRESUBMIT.py (right): http://codereview.chromium.org/20474/diff/8/10#newcode62 Line 62: if contents.count('\r'): You don't actually need a count, ...
11 years, 10 months ago (2009-02-19 14:28:31 UTC) #7
Jói Sigurðsson
Thanks Mark, I've addressed your comments and uploaded a new version. http://codereview.chromium.org/20474/diff/8/10 File PRESUBMIT.py (right): ...
11 years, 10 months ago (2009-02-19 15:40:01 UTC) #8
Mark Mentovai
11 years, 10 months ago (2009-02-19 15:51:35 UTC) #9
Excellent, lgtm too.

http://codereview.chromium.org/20474/diff/14/1011
File PRESUBMIT_unittest.py (right):

http://codereview.chromium.org/20474/diff/14/1011#newcode2
Line 2: # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2009?

Powered by Google App Engine
This is Rietveld 408576698