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

Issue 2489973002: support analysis options include declaration (Closed)

Created:
4 years, 1 month ago by danrubel
Modified:
4 years, 1 month ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

work in progress - support analysis options include declaration R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/68ba3cfe51eb1f2873c2d718b1af03f695df90fc

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -11 lines) Patch
M pkg/analyzer/lib/source/analysis_options_provider.dart View 3 chunks +32 lines, -10 lines 4 comments Download
M pkg/analyzer/test/source/analysis_options_provider_test.dart View 4 chunks +43 lines, -1 line 1 comment Download

Messages

Total messages: 6 (2 generated)
danrubel
This enhances AnalysisOptionsProvider to handle include declarations in the analysis options file. This functionality will ...
4 years, 1 month ago (2016-11-11 18:59:55 UTC) #1
Brian Wilkerson
lgtm https://codereview.chromium.org/2489973002/diff/1/pkg/analyzer/lib/source/analysis_options_provider.dart File pkg/analyzer/lib/source/analysis_options_provider.dart (right): https://codereview.chromium.org/2489973002/diff/1/pkg/analyzer/lib/source/analysis_options_provider.dart#newcode55 pkg/analyzer/lib/source/analysis_options_provider.dart:55: YamlNode node = options.remove('include'); Given that "participants" are ...
4 years, 1 month ago (2016-11-11 19:37:47 UTC) #3
danrubel
Committed patchset #1 (id:1) manually as 68ba3cfe51eb1f2873c2d718b1af03f695df90fc (presubmit successful).
4 years, 1 month ago (2016-11-14 20:12:13 UTC) #5
danrubel
4 years, 1 month ago (2016-11-14 20:39:33 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2489973002/diff/1/pkg/analyzer/lib/source/ana...
File pkg/analyzer/lib/source/analysis_options_provider.dart (right):

https://codereview.chromium.org/2489973002/diff/1/pkg/analyzer/lib/source/ana...
pkg/analyzer/lib/source/analysis_options_provider.dart:55: YamlNode node =
options.remove('include');
On 2016/11/11 19:37:47, Brian Wilkerson wrote:
> Given that "participants" are able to look at the options in order to do their
> own processing, it isn't clear to me that we should be removing the includes
> key. Not sure it matters in practice, though.

I don't think the "include" directive makes sense as part of the options once
options are merged. We can always add something like a
"getPreMergeOptionsFromSource" method if needed which will not merge and will
not remove any include directive.

That said, I can keep the "include" directive in the resulting yaml map if you'd
prefer.

https://codereview.chromium.org/2489973002/diff/1/pkg/analyzer/lib/source/ana...
pkg/analyzer/lib/source/analysis_options_provider.dart:142: return null;
On 2016/11/11 19:37:47, Brian Wilkerson wrote:
> There is linter support for linting options files. We should add a github
issue
> to add a lint for the cases where the include contains an invalid uri.

Good idea. https://github.com/dart-lang/sdk/issues/27817

Powered by Google App Engine
This is Rietveld 408576698