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

Issue 804763002: ui/app_list: Enable a set of cpplint checks. (Closed)

Created:
6 years ago by tfarina
Modified:
6 years ago
Reviewers:
tapted, Nico
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, Nico, Dirk Pranke, agable
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ui/app_list: Enable a set of cpplint checks. That were otherwise filtered out (disabled) by the way depot_tools' presubmit_canned_checks.py::CheckChangeLintsClean() worked. As of https://src.chromium.org/viewvc/chrome?revision=293357&view=revision, it was changed, so clients can pass their own files and enable those that were disabled. BUG=None TEST=None R=tapted@chromium.org Committed: https://crrev.com/f3e59936e42bcee3383dbdde3f35f92db0509dc8 Cr-Commit-Position: refs/heads/master@{#308481}

Patch Set 1 #

Total comments: 3

Patch Set 2 : list - [] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ui/app_list/PRESUBMIT.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (2 generated)
tfarina
ptal https://codereview.chromium.org/804763002/diff/1/ui/app_list/PRESUBMIT.py File ui/app_list/PRESUBMIT.py (right): https://codereview.chromium.org/804763002/diff/1/ui/app_list/PRESUBMIT.py#newcode26 ui/app_list/PRESUBMIT.py:26: input_api, output_api, sources, '') Is this correct? Hopefully, ...
6 years ago (2014-12-14 03:35:59 UTC) #1
tapted
https://codereview.chromium.org/804763002/diff/1/ui/app_list/PRESUBMIT.py File ui/app_list/PRESUBMIT.py (right): https://codereview.chromium.org/804763002/diff/1/ui/app_list/PRESUBMIT.py#newcode26 ui/app_list/PRESUBMIT.py:26: input_api, output_api, sources, '') On 2014/12/14 03:35:59, tfarina wrote: ...
6 years ago (2014-12-15 22:12:55 UTC) #2
tfarina
Pushing to CQ. https://codereview.chromium.org/804763002/diff/1/ui/app_list/PRESUBMIT.py File ui/app_list/PRESUBMIT.py (right): https://codereview.chromium.org/804763002/diff/1/ui/app_list/PRESUBMIT.py#newcode26 ui/app_list/PRESUBMIT.py:26: input_api, output_api, sources, '') On 2014/12/15 ...
6 years ago (2014-12-15 23:45:19 UTC) #3
Nico
How long do the new presubmit checks take to run?
6 years ago (2014-12-15 23:46:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/804763002/20001
6 years ago (2014-12-15 23:46:46 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-16 00:55:41 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f3e59936e42bcee3383dbdde3f35f92db0509dc8 Cr-Commit-Position: refs/heads/master@{#308481}
6 years ago (2014-12-16 00:56:26 UTC) #9
tapted
On 2014/12/15 23:46:41, Nico wrote: > How long do the new presubmit checks take to ...
6 years ago (2014-12-16 02:27:05 UTC) #10
Nico
On Mon, Dec 15, 2014 at 6:27 PM, <tapted@chromium.org> wrote: > > On 2014/12/15 23:46:41, ...
6 years ago (2014-12-17 00:12:44 UTC) #11
tapted
On 2014/12/17 00:12:44, Nico wrote: > On Mon, Dec 15, 2014 at 6:27 PM, <mailto:tapted@chromium.org> ...
6 years ago (2014-12-17 00:41:52 UTC) #12
Nico
On Tue, Dec 16, 2014 at 4:41 PM, <tapted@chromium.org> wrote: > > On 2014/12/17 00:12:44, ...
6 years ago (2014-12-17 00:50:40 UTC) #13
tapted
On 2014/12/17 00:50:40, Nico wrote: > On Tue, Dec 16, 2014 at 4:41 PM, <mailto:tapted@chromium.org> ...
6 years ago (2014-12-17 02:02:24 UTC) #14
Nico
6 years ago (2014-12-17 02:06:11 UTC) #15
Message was sent while issue was closed.
On Tue, Dec 16, 2014 at 6:02 PM, <tapted@chromium.org> wrote:
>
> On 2014/12/17 00:50:40, Nico wrote:
>
>> On Tue, Dec 16, 2014 at 4:41 PM, <mailto:tapted@chromium.org> wrote:
>> >
>> > On 2014/12/17 00:12:44, Nico wrote:
>> >
>> >> On Mon, Dec 15, 2014 at 6:27 PM, <mailto:tapted@chromium.org> wrote:
>> >> > I suspect it would be "nice" for more things to be running cpplint
>> (e.g.
>> >> > under
>> >> > src/ui and elsewhere beyond just src/chrome).
>> >>
>> >
>> >
>> >  Out of interest, which of cpplint's checks are useful for chromium?
>> >>
>> >
>> > I'd be inclined to say "most of them" :). There's a long list -
>> > https://code.google.com/p/chromium/codesearch#chromium/
>> > tools/depot_tools/cpplint.py&q=cpplint.py&sq=package:chromium&l=177
>> > . I don't know details about all of them, and won't try to classify
>> them. I
>> > think many are things that an experienced programmer would never do
>> > anyway, just
>> > out of instinct.
>> >
>>
>
>  Are these documented somewhere? (Didn't find anything in 10s of googling)
>>
>
> I couldn't find much either. But some horrible regex like `sed -ne
> "/[^)]$/ {H};
> /[)]$/ {H;x; s/\n//g; s/  //g; p}" cpplint.py  | grep -o 'error([^)]*)' |
> sed -r
> 's/[^,]*,[^,]*,[^,]* (.*)/\1/'| sort` can suck out some more descriptive
> strings: e.g.
>
> 'readability/alt_tokens', 2,'Use operator %s instead of %s' %
> (_ALT_TOKEN_REPLACEMENT[match.group(1)
> 'readability/braces', 4,'Did you mean "else if"? If not, start a new line
> for
> "if".')
> 'readability/braces', 4,'Else clause should be indented at the same level
> as if.
> ''Ambiguous nested if/else chains require braces.')
> 'readability/braces', 4,'If/else bodies with multiple statements require
> braces')
> 'readability/braces', 4,'If/else bodies with multiple statements require
> braces')
> 'readability/braces', 4,"You don't need a ; after a }")
>
>  Looking over the list and judging by the name, many of these look like
>> things that the compiler should (and does) catch – it can do this much
>> faster, and more reliably.
>>
>
> yep - agree :). It looks like go/clangtidy
> <https://goto.google.com/clangtidy> wants to replace cpplint eventually.
>

clangtidy is also a separate step, and since it builds ASTs and whatnot, it
needs defines and includes paths – I'd guess it'll be slower than cpplint.
For some things, clang-tidy will make sense, but "important" things should
just be caught by the "regular" compiler.


>
> https://codereview.chromium.org/804763002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698