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

Issue 424733003: Add exception for long url(..) lines in css files in presubmit_canned_checks.CheckLongLines (Closed)

Created:
6 years, 4 months ago by Marc Treib
Modified:
6 years, 4 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Project:
tools
Visibility:
Public.

Description

Add exception for long url(..) lines in css files in presubmit_canned_checks.CheckLongLines BUG=397508 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=285901

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments #

Total comments: 4

Patch Set 3 : more review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M presubmit_canned_checks.py View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M tests/presubmit_unittest.py View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Marc Treib
PTAL!
6 years, 4 months ago (2014-07-28 12:16:30 UTC) #1
M-A Ruel
https://codereview.chromium.org/424733003/diff/1/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/424733003/diff/1/presubmit_canned_checks.py#newcode361 presubmit_canned_checks.py:361: if (any((url in line) for url in ('file://', 'http://', ...
6 years, 4 months ago (2014-07-28 13:43:32 UTC) #2
Marc Treib
https://codereview.chromium.org/424733003/diff/1/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/424733003/diff/1/presubmit_canned_checks.py#newcode361 presubmit_canned_checks.py:361: if (any((url in line) for url in ('file://', 'http://', ...
6 years, 4 months ago (2014-07-28 13:57:12 UTC) #3
M-A Ruel
https://codereview.chromium.org/424733003/diff/20001/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/424733003/diff/20001/presubmit_canned_checks.py#newcode364 presubmit_canned_checks.py:364: if ('url(' in line) and file_extension == 'css': if ...
6 years, 4 months ago (2014-07-28 14:09:05 UTC) #4
Marc Treib
https://codereview.chromium.org/424733003/diff/20001/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/424733003/diff/20001/presubmit_canned_checks.py#newcode364 presubmit_canned_checks.py:364: if ('url(' in line) and file_extension == 'css': On ...
6 years, 4 months ago (2014-07-28 14:13:48 UTC) #5
M-A Ruel
On 2014/07/28 14:13:48, treib wrote: > https://codereview.chromium.org/424733003/diff/20001/presubmit_canned_checks.py#newcode367 > presubmit_canned_checks.py:367: return > input_api.re.match(r'.*[A-Za-z][A-Za-z_0-9]{%d,}.*' % long_symbol, > ...
6 years, 4 months ago (2014-07-28 14:20:11 UTC) #6
M-A Ruel
The CQ bit was checked by maruel@chromium.org
6 years, 4 months ago (2014-07-28 14:20:14 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/treib@chromium.org/424733003/40001
6 years, 4 months ago (2014-07-28 14:20:37 UTC) #8
commit-bot: I haz the power
Change committed as 285901
6 years, 4 months ago (2014-07-28 14:23:13 UTC) #9
Marc Treib
6 years, 4 months ago (2014-07-28 15:06:14 UTC) #10
Message was sent while issue was closed.
On 2014/07/28 14:20:11, M-A Ruel wrote:
> On 2014/07/28 14:13:48, treib wrote:
> >
>
https://codereview.chromium.org/424733003/diff/20001/presubmit_canned_checks....
> > presubmit_canned_checks.py:367: return
> > input_api.re.match(r'.*[A-Za-z][A-Za-z_0-9]{%d,}.*' % long_symbol,
> > On 2014/07/28 14:09:05, M-A Ruel wrote:
> > > I highly prefer:
> > > return input_api.re.match(
> > >     r'.*[A-Za-z][A-Za-z_0-9]{%d,}.*' % long_symbol, line)
> > > 
> > > The rationale is that if you ever rename the function call (let's say
> > input_api
> > > is renamed to foo_bar), then doing a sed like replace doesn't need the
> > argument
> > > list to be realigned, which saves a lot of time. When you align at (, it
> makes
> > > refactoring much more painful by requiring a lot of stupid whitespace
> > alignment,
> > > which is a total waste of time.
> 
> Wow, re-reading myself, that was harsh, I really need my second coffee. Sorry
> for the attitude and thanks for doing it.
> 
> lgtm

No hard feelings :)

Powered by Google App Engine
This is Rietveld 408576698