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

Issue 2976473003: add analysis server --flutter-repo startup flag (Closed)

Created:
3 years, 5 months ago by danrubel
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

add analysis server --flutter-repo startup flag This adds a new flag used by `flutter analyze --watch` when analyzing the flutter repository. When specified, this flag causes analysis server to enable the public_member_api_docs lint even though it is not enabled in the analysis_options file. `flutter analyze --watch` needs the results of this lint to summarize the number of public members missing dartdoc, but enabling it in the analysis_options causes too much noise in the IDE. See https://github.com/flutter/flutter/issues/10721 for more background R=devoncarew@google.com Committed: https://github.com/dart-lang/sdk/commit/def1ee6604c4b3385b567cb9832af0dbbaf32e0d

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 8

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -0 lines) Patch
M pkg/analysis_server/lib/src/server/driver.dart View 1 2 4 chunks +13 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/context/builder.dart View 1 2 3 chunks +18 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/context/builder_test.dart View 3 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
danrubel
3 years, 5 months ago (2017-07-08 10:37:02 UTC) #2
devoncarew
lgtm Some suggestions inline - https://codereview.chromium.org/2976473003/diff/20001/pkg/analysis_server/lib/src/server/driver.dart File pkg/analysis_server/lib/src/server/driver.dart (right): https://codereview.chromium.org/2976473003/diff/20001/pkg/analysis_server/lib/src/server/driver.dart#newcode320 pkg/analysis_server/lib/src/server/driver.dart:320: ContextBuilderOptions.flutterRepo = results[FLUTTER_REPO]; No ...
3 years, 5 months ago (2017-07-10 16:47:35 UTC) #3
danrubel
https://codereview.chromium.org/2976473003/diff/20001/pkg/analysis_server/lib/src/server/driver.dart File pkg/analysis_server/lib/src/server/driver.dart (right): https://codereview.chromium.org/2976473003/diff/20001/pkg/analysis_server/lib/src/server/driver.dart#newcode320 pkg/analysis_server/lib/src/server/driver.dart:320: ContextBuilderOptions.flutterRepo = results[FLUTTER_REPO]; On 2017/07/10 16:47:35, devoncarew wrote: > ...
3 years, 5 months ago (2017-07-10 20:47:59 UTC) #4
danrubel
Committed patchset #3 (id:40001) manually as def1ee6604c4b3385b567cb9832af0dbbaf32e0d (presubmit successful).
3 years, 5 months ago (2017-07-10 20:50:15 UTC) #6
Brian Wilkerson
I have a concern with this approach. Specifically, it increases the complexity of the algorithm ...
3 years, 5 months ago (2017-07-19 16:44:37 UTC) #8
danrubel
3 years, 5 months ago (2017-07-19 17:41:37 UTC) #9
Message was sent while issue was closed.
On 2017/07/19 16:44:37, Brian Wilkerson wrote:
> I have a concern with this approach. Specifically, it increases the complexity
> of the algorithm used to determine which lint rules are enabled by adding yet
> another avenue for enabling some rules. The algorithm was already complex
enough
> to cause some amount of user confusion, so increasing the complexity seems
like
> the wrong approach. (Yes, I know that most users won't see the complexity for
> this specific use case, but I'm concerned that it establishes a precedent that
> will be abused in the future.)
> 
> I would love to know which other options, if any, were explored and why they
> were rejected. For example, could `flutter analyze` create a temporary
analysis
> options file that includes the base options file?

I agree with your concerns and would like a better approach if one exists.
Let's chat offline to see if we can come up with something better.

Powered by Google App Engine
This is Rietveld 408576698