pq
1d4d0d769f
CLI support for enableAssertInitializers.
...
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2809793004 .
2017-04-12 10:38:30 -07:00
Jacob MacDonald
3e623d7df1
Add --build-summary-only-unlinked flag, which makes the output summary be an unlinked summary instead of a linked one.
...
BUG=
R=paulberry@google.com
Review-Url: https://codereview.chromium.org/2796953002 .
2017-04-04 12:22:20 -07:00
Devon Carew
0fcb91aa06
Fix analyzer tests when run in checked mode.
...
BUG=
Review-Url: https://codereview.chromium.org/2775073002 .
2017-03-25 15:34:40 -07:00
Devon Carew
b51d1fd8e3
Use ansi color in the dartanalyzer cli output.
...
BUG=
R=brianwilkerson@google.com , danrubel@google.com
Review-Url: https://codereview.chromium.org/2775633002 .
2017-03-25 15:02:47 -07:00
Jacob Richman
a993294503
Format all analyzer packages
...
BUG=
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2753923003 .
2017-03-16 16:11:43 -07:00
danrubel
b401f7272f
cleanup bazel workspace relative path test
...
Review-Url: https://codereview.chromium.org/2712333002 .
2017-02-26 13:19:25 -08:00
danrubel
4c771a52d3
fix failing bazel workspace relative path test
...
Review-Url: https://codereview.chromium.org/2721483002 .
2017-02-26 12:44:28 -08:00
danrubel
130f43fe7b
fix failing bazel workspace relative path test
...
Review-Url: https://codereview.chromium.org/2720593002 .
2017-02-26 11:14:14 -08:00
danrubel
994a3a2b20
Revert "debug failing test"
...
This reverts commit c78ea8c231 .
Review-Url: https://codereview.chromium.org/2721473002 .
2017-02-26 11:08:19 -08:00
danrubel
c78ea8c231
debug failing test
...
Review-Url: https://codereview.chromium.org/2721453002 .
2017-02-26 09:47:58 -08:00
danrubel
c04f6a2ab1
fix dartanalyzer find options in bazel workspace
...
- add dartanalyzer test for bazel workspace
- ensure call to getAnalysisOptions passes an absolute path
- update BasicWorkspace to have an absolute normalized path similar to BazelWorkspace
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2719703005 .
2017-02-26 08:52:55 -08:00
Brian Wilkerson
be65669b34
Fix tests that are failing on windows
...
Review-Url: https://codereview.chromium.org/2713913003 .
2017-02-24 08:18:54 -08:00
danrubel
abee739921
rework analyzer_cli to use ContextBuilder getAnalysisOptions
...
This is a follow on to https://codereview.chromium.org/2716693003
that refactors analyzer_cli to use ContextBuilder.
As a result, dartanalyzer now correctly finds the default
flutter analysis options when the project references package:flutter
but does not contain an analysis options file.
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2710313002 .
2017-02-23 16:52:26 -05:00
Devon Carew
1da570c215
Remove and hide analyzer cli flags.
...
BUG=
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2713723003 .
2017-02-22 14:09:41 -08:00
Devon Carew
46cacfeae9
Some improvements to the command-line analyzer's output.
...
BUG=
R=brianwilkerson@google.com , danrubel@google.com
Review-Url: https://codereview.chromium.org/2704103002 .
2017-02-22 12:35:09 -08:00
Devon Carew
6e9adf2624
Remove older deprecated flags; more cleanup to the cli help args.
...
BUG=
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2692203010 .
2017-02-17 13:30:37 -08:00
Devon Carew
e1fb256694
Fix an arg parser test for the analyzer cli.
...
BUG=
Review-Url: https://codereview.chromium.org/2696703011 .
2017-02-17 06:56:33 -08:00
Konstantin Shcheglov
7e9f4ba34c
Make the test's dart:core import dart:async in tests.
...
SDK's version does it, and we probably don't want to protect aginst
something what happens only in tests, but is not expected actually.
R=brianwilkerson@google.com
BUG=
Review-Url: https://codereview.chromium.org/2696013004 .
2017-02-14 13:31:18 -08:00
Leaf Petersen
0c2bf046f1
Add FutureOr to analyzer_cli test async.dart.
...
Fixes https://github.com/dart-lang/sdk/issues/28653 .
BUG=
R=brianwilkerson@google.com , whesse@google.com
Review-Url: https://codereview.chromium.org/2675203006 .
2017-02-06 17:08:33 -08:00
danrubel
167107e94c
fix dartanalyzer sdk setup
...
Separate analysis options initialization from context setup
so that analysis options can be used to correctly setup the SDK
in strong mode.
Fix https://github.com/dart-lang/sdk/issues/28507
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2678633002 .
2017-02-04 12:08:53 -05:00
Konstantin Shcheglov
15cf5cb017
Run analyzer_cli asynchronously.
...
R=brianwilkerson@google.com
BUG=
Review-Url: https://codereview.chromium.org/2658863002 .
2017-01-26 09:42:51 -08:00
Dan Rubel
13bd1ad0bf
DDC/AnalyzerCLI common cmdline option processing
...
Refactor DDC and Analyzer CLI command line option processing
to use common createContextBuilderOptions method
and ContextBuilderOptions to hold common options.
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2584293003 .
2016-12-19 16:24:20 -05:00
danrubel
e321439470
cleanup Analyzer CLI and DDC arg parsing
...
This removes the need to split arguments on '='
before calling the extractDefinedVariables method.
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2581723002 .
2016-12-15 12:16:20 -05:00
danrubel
2c62510f5f
move CommandLineParser into analyzer for reuse by DDC
...
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2578733002 .
2016-12-14 16:31:45 -05:00
danrubel
1417eec66e
move extractDefinedVariables from analyzer cli to analyzer
...
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2571583007 .
2016-12-14 13:22:41 -05:00
Brian Wilkerson
0ea654a068
Remove the AnalysisOptionsProcessor
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2559523005 .
2016-12-07 10:51:33 -08:00
Dan Rubel
aff6b796f3
update analyzer cli to support include directive in analysis options file
...
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2541933002 .
2016-11-30 15:16:55 -05:00
Brian Wilkerson
e63105555b
Remove uses of configuration data
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2522543007 .
2016-11-22 11:26:08 -08:00
Brian Wilkerson
3121296942
(TBR) Fix failing tests
...
Review URL: https://codereview.chromium.org/2426703002 .
2016-10-17 11:55:31 -07:00
Konstantin Shcheglov
ec282eb726
Switch analyzer_cli to 'package:test'.
...
R=brianwilkerson@google.com , paulberry@google.com
BUG=
Review URL: https://codereview.chromium.org/2395183002 .
2016-10-06 10:02:39 -07:00
Paul Berry
4b2bf4d6a0
Add an analysis option to disable cache flushing.
...
This improves the analysis speed of large projects by as much as 20%.
It also can be used to work around cache flushing bugs.
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2383203003 .
2016-10-01 06:41:20 -07:00
Konstantin Shcheglov
92ee0b2488
Fix for the new hint in super_mixin_example.dart in analyzer_cli.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org/2364763002 .
2016-09-22 15:03:06 -07:00
Konstantin Shcheglov
5703f5adb1
Replace using reprecated 'package:analyzer/src/generated/error.dart'.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org/2364643002 .
2016-09-22 10:10:53 -07:00
Konstantin Shcheglov
1387e8ec5c
Remove fallback mode and corresponding cli flag.
...
R=paulberry@google.com
BUG=
Review URL: https://codereview.chromium.org/2356523002 .
2016-09-19 14:02:14 -07:00
Paul Berry
f7a12f9c83
Allow input summaries to be specified when running analyzer_cli in non-build mode.
...
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2347133004 .
2016-09-19 12:39:24 -07:00
Brian Wilkerson
5bd4de469e
Clean up warnings and hints
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2324463006 .
2016-09-09 09:09:59 -07:00
Brian Wilkerson
fe02411930
Remove several references to JavaFile
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2323173002 .
2016-09-09 07:45:40 -07:00
Brian Wilkerson
c41427383b
Deprecate DirectoryBasedDartSdk and transition existing uses to the new API
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2242853002 .
2016-08-12 09:18:12 -07:00
Brian Wilkerson
b47d35d706
Clean up use of resource provider in cli
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2212813003 .
2016-08-04 12:31:10 -07:00
Brian Wilkerson
f8d7925ff2
Mark analyzer_cli as strong-mode clean
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2196393003 .
2016-08-01 12:44:59 -07:00
Paul Berry
a35c9415f5
Add option "--build-summary-output-semantic" to analyzer_cli.
...
This option has the same functionality as the flag
"--build-summary-exclude-informative", except it is an option rather
than a flag. This makes it possible to get both a "full" summary and a
"semantic" summary by specifying both "--build-summary-output" and
"--build-summary-output-semantic".
The flag "--build-summary-exclude-informative" is kept around to ease in
transitioning tools, but it is deprecated.
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2104003004 .
2016-06-29 10:25:50 -07:00
pq
43bbf11dd8
SDK ext test fix (add missing packages file).
...
BUG=
R=paulberry@google.com
Review URL: https://codereview.chromium.org/1988603003 .
2016-05-17 13:49:04 -07:00
pq
fb99a26b21
Test exit code handling fix [TBR].
...
TBR in a quest for build greenness...
BUG=
Review URL: https://codereview.chromium.org/1984323004 .
2016-05-17 12:37:39 -07:00
pq
31a03ec31b
Skip SDK summaries in the presence of SDK extenders ( #26448 ).
...
Works around crash provoked by mojo: https://github.com/dart-lang/sdk/issues/26448 .
The rub is that using SDK summaries in the presence of SDK extenders (and embedders) is unsafe.
Greater context: https://github.com/dart-lang/sdk/issues/26467 .
BUG=
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/1990463002 .
2016-05-17 11:10:43 -07:00
pq
7937623063
Don't use SDK summaries with embedders ( #26448 ).
...
Addresses the issue seen in https://github.com/dart-lang/sdk/issues/26448 .
Ultimately we want a better story for summaries in the presence of embedded SDKs; in the short-term this simply disables them.
The trick (and reason for all of the changes here) is that there is *a lot* of temporal coupling in the initiailization of contexts, sdks, resolvers, etc. With this change, embedder processing is pulled out to where it can be done before the SDK is configured. Hopefully this even makes this a bit more clear as resolver setup is less complex.
Open question: I think the logic that calls `pub list-dirs` is dead and can safely be removed. Comments there welcome.
Thanks!
BUG=
R=brianwilkerson@google.com , scheglov@google.com
Review URL: https://codereview.chromium.org/1984733003 .
2016-05-16 14:13:40 -07:00
Brian Wilkerson
44836f8538
Support the name analysis_options.yaml for analysis options files
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/1975963002 .
2016-05-13 07:33:06 -07:00
pq
7913968725
Fix CLI SDK option config timing ( #26129 ).
...
Fixes: https://github.com/dart-lang/sdk/issues/26129
The issue was that we were creating the SDK and populating its options (notably `strong-mode`) *before* options processors were called. The result was that client code analysis contexts and SDK contexts were getting configured differently causing confusion when client code was getting analyzed with a non-strong-mode SDK.
BUG=
R=paulberry@google.com
Review URL: https://codereview.chromium.org/1962403002 .
2016-05-10 13:35:40 -07:00
Paul Berry
baa7dac310
Allow zero analyzer args in build mode.
...
This simplifies the integration with build systems such as Bazel, in
which it is sometimes convenient to have a build unit which depends on
other build units but doesn't introduce any additional source files of
its own.
R=pquitslund@google.com
Review URL: https://codereview.chromium.org/1960263003 .
2016-05-09 12:39:06 -07:00
Brian Wilkerson
3084ceae83
Clean up flags for conditional directives
...
R=pquitslund@google.com
Review URL: https://codereview.chromium.org/1892523002 .
2016-04-14 11:47:28 -07:00
Jacob MacDonald
d4197b759d
close the input stream in build_mode tests so they dont hang
...
R=paulberry@google.com
Review URL: https://codereview.chromium.org/1892483003 .
2016-04-14 10:54:18 -07:00