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

Issue 953953003: Introduce dartanalyze into our build. (Closed)

Created:
5 years, 10 months ago by Elliot Glaysher
Modified:
5 years, 10 months ago
Reviewers:
zra, Cutch, jamesr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, Paul Berry
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Introduce dartanalyze into our build. This creates a separate toplevel build group ("dartcheck"), and when invoked, it will run dartanalyze on each source file in a dart_packaged_application template in the gn files. Currently, we disable hints, warnings, and a few specific hard errors so we can make progress here. Long term I'd like to have this as part of the normal build, but currently it takes roughly three and a half seconds to check each dart file for errors. BUG=459376 R=zra@google.com Committed: https://chromium.googlesource.com/external/mojo/+/2175b8834202e3e884a4e69423e899894a32dabd

Patch Set 1 #

Total comments: 6

Patch Set 2 : Use --package-root, change data_pipe.dart #

Patch Set 3 : Only run dartanalyze on the toplevel check target. #

Total comments: 2

Patch Set 4 : Remove stray mark #

Patch Set 5 : mojob integration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -8 lines) Patch
M BUILD.gn View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M README.md View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/public/dart/rules.gni View 1 2 3 4 3 chunks +37 lines, -0 lines 0 comments Download
M mojo/public/dart/src/codec.dart View 5 chunks +6 lines, -6 lines 0 comments Download
M mojo/public/dart/src/data_pipe.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
A mojo/public/tools/dart_analyze.py View 1 1 chunk +67 lines, -0 lines 0 comments Download
M mojo/tools/mojob.py View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (2 generated)
Elliot Glaysher
This is a first pass at adding a dartanalyze step to our build. It fixes ...
5 years, 10 months ago (2015-02-24 22:41:53 UTC) #2
jamesr
Can you run the analyzer without telling it where the mojom.dart files are, or is ...
5 years, 10 months ago (2015-02-24 22:52:18 UTC) #3
Elliot Glaysher
On 2015/02/24 22:52:18, jamesr wrote: > Can you run the analyzer without telling it where ...
5 years, 10 months ago (2015-02-24 23:03:29 UTC) #4
zra
lgtm https://codereview.chromium.org/953953003/diff/1/mojo/public/dart/src/data_pipe.dart File mojo/public/dart/src/data_pipe.dart (right): https://codereview.chromium.org/953953003/diff/1/mojo/public/dart/src/data_pipe.dart#newcode107 mojo/public/dart/src/data_pipe.dart:107: MojoResult read(ByteData data, [int numBytes = -1, int ...
5 years, 10 months ago (2015-02-24 23:04:40 UTC) #5
zra
not lgtm
5 years, 10 months ago (2015-02-24 23:04:47 UTC) #6
zra
Sorry, wrong button =(
5 years, 10 months ago (2015-02-24 23:05:01 UTC) #7
Elliot Glaysher
ptal https://codereview.chromium.org/953953003/diff/1/mojo/public/tools/dart_analyze.py File mojo/public/tools/dart_analyze.py (right): https://codereview.chromium.org/953953003/diff/1/mojo/public/tools/dart_analyze.py#newcode17 mojo/public/tools/dart_analyze.py:17: # for each found mojom.dart in our build. ...
5 years, 10 months ago (2015-02-24 23:47:48 UTC) #8
zra
On 2015/02/24 23:47:48, Elliot Glaysher wrote: > However, it doesn't solve the bulk of the ...
5 years, 10 months ago (2015-02-24 23:50:36 UTC) #9
zra
5 years, 10 months ago (2015-02-24 23:51:13 UTC) #10
Elliot Glaysher
On 2015/02/24 23:51:13, zra wrote: In case it helps, I saw that there is a ...
5 years, 10 months ago (2015-02-25 00:37:41 UTC) #11
Cutch
I don't have any specific insight into analyzer performance or the teams plan on fixing ...
5 years, 10 months ago (2015-02-25 15:20:13 UTC) #13
jamesr
If it's just going to be this slow then instead of landing this as a ...
5 years, 10 months ago (2015-02-25 15:50:04 UTC) #14
Cutch
On 2015/02/25 15:50:04, jamesr wrote: > If it's just going to be this slow then ...
5 years, 10 months ago (2015-02-25 16:24:16 UTC) #15
Elliot Glaysher
On 2015/02/25 15:50:04, jamesr wrote: > If it's just going to be this slow then ...
5 years, 10 months ago (2015-02-25 19:11:16 UTC) #16
Cutch
DBC https://codereview.chromium.org/953953003/diff/40001/examples/dart/wget/main.dart File examples/dart/wget/main.dart (right): https://codereview.chromium.org/953953003/diff/40001/examples/dart/wget/main.dart#newcode41 examples/dart/wget/main.dart:41: unnecessary white space?
5 years, 10 months ago (2015-02-25 19:33:44 UTC) #17
Elliot Glaysher
https://codereview.chromium.org/953953003/diff/40001/examples/dart/wget/main.dart File examples/dart/wget/main.dart (right): https://codereview.chromium.org/953953003/diff/40001/examples/dart/wget/main.dart#newcode41 examples/dart/wget/main.dart:41: On 2015/02/25 19:33:44, Cutch wrote: > unnecessary white space? ...
5 years, 10 months ago (2015-02-25 20:19:17 UTC) #18
zra
lgtm Until it's added to the build step, it might be useful to have instructions ...
5 years, 10 months ago (2015-02-25 22:01:42 UTC) #19
Elliot Glaysher
5 years, 10 months ago (2015-02-26 22:32:23 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
2175b8834202e3e884a4e69423e899894a32dabd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698