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

Issue 1806263004: add --x-package-warnings-prefix option to dartanalyzer (Closed)

Created:
4 years, 9 months ago by skybrian
Modified:
4 years, 9 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

add --x-package-warnings-prefix option to dartanalyzer This is similar to --package-warnings, except that diagnostics will only be reported for Dart packages matching the given prefix. Also added the number of source files analyzed and the number of errors generated to performance report. Cleanup: simplified code for triggering diet parsing. BUG= R=paulberry@google.com Committed: https://github.com/dart-lang/sdk/commit/9e21594c2aa7eedf09fd158ba9690233bfaf07e7

Patch Set 1 #

Total comments: 6

Patch Set 2 : merge, rewrite source file count #

Patch Set 3 : add a test #

Patch Set 4 : oops, check in all the test files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -57 lines) Patch
M pkg/analyzer_cli/lib/src/analyzer_impl.dart View 1 3 chunks +30 lines, -22 lines 0 comments Download
M pkg/analyzer_cli/lib/src/driver.dart View 1 6 chunks +26 lines, -31 lines 0 comments Download
M pkg/analyzer_cli/lib/src/error_formatter.dart View 1 3 chunks +9 lines, -0 lines 0 comments Download
M pkg/analyzer_cli/lib/src/options.dart View 1 3 chunks +11 lines, -2 lines 0 comments Download
M pkg/analyzer_cli/lib/src/perf_report.dart View 1 4 chunks +7 lines, -1 line 0 comments Download
M pkg/analyzer_cli/test/all.dart View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A pkg/analyzer_cli/test/data/package_prefix/main.dart View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A pkg/analyzer_cli/test/data/package_prefix/packagelist View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A pkg/analyzer_cli/test/data/package_prefix/pkg/bar/bar.dart View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A pkg/analyzer_cli/test/data/package_prefix/pkg/foo/foo.dart View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A pkg/analyzer_cli/test/package_prefix_test.dart View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M pkg/analyzer_cli/test/perf_report_test.dart View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (4 generated)
skybrian
I'll add tests tomorrow if you're okay with this approach.
4 years, 9 months ago (2016-03-18 01:57:38 UTC) #2
Brian Wilkerson
While I don't think this is the right long term approach, I'm fine with it ...
4 years, 9 months ago (2016-03-18 14:13:18 UTC) #3
skybrian
Still need to write the tests. https://codereview.chromium.org/1806263004/diff/1/pkg/analyzer_cli/lib/src/driver.dart File pkg/analyzer_cli/lib/src/driver.dart (right): https://codereview.chromium.org/1806263004/diff/1/pkg/analyzer_cli/lib/src/driver.dart#newcode101 pkg/analyzer_cli/lib/src/driver.dart:101: throw new StateError("start() ...
4 years, 9 months ago (2016-03-18 22:32:44 UTC) #4
skybrian
Paul since Brian Wilkerson will be on vacation could you review this?
4 years, 9 months ago (2016-03-19 02:40:16 UTC) #6
Paul Berry
lgtm
4 years, 9 months ago (2016-03-21 17:26:33 UTC) #8
skybrian
4 years, 9 months ago (2016-03-21 18:37:04 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
9e21594c2aa7eedf09fd158ba9690233bfaf07e7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698