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

Issue 880313006: Disable analysis in hidden directories (fix for issue 22170) (Closed)

Created:
5 years, 10 months ago by Brian Wilkerson
Modified:
5 years, 10 months ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Disable analysis in hidden directories (fix for issue 22170) R=paulberry@google.com Committed: https://code.google.com/p/dart/source/detail?r=43485

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -18 lines) Patch
M editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/AnalysisServer.java View 1 1 chunk +2 lines, -1 line 0 comments Download
M pkg/analysis_server/doc/api.html View 1 2 chunks +7 lines, -7 lines 0 comments Download
M pkg/analysis_server/lib/src/context_manager.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/integration/integration_test_methods.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/spec_input.html View 1 2 chunks +7 lines, -7 lines 1 comment Download

Messages

Total messages: 7 (2 generated)
Brian Wilkerson
5 years, 10 months ago (2015-02-04 18:31:27 UTC) #2
Paul Berry
lgtm. Should we document this new behavior somewhere? (I.e. maybe in the analysis server spec ...
5 years, 10 months ago (2015-02-04 18:39:52 UTC) #3
Brian Wilkerson
> Should we document this new behavior somewhere? Done https://codereview.chromium.org/880313006/diff/1/pkg/analysis_server/lib/src/context_manager.dart File pkg/analysis_server/lib/src/context_manager.dart (right): https://codereview.chromium.org/880313006/diff/1/pkg/analysis_server/lib/src/context_manager.dart#newcode286 pkg/analysis_server/lib/src/context_manager.dart:286: ...
5 years, 10 months ago (2015-02-04 21:26:19 UTC) #5
Brian Wilkerson
Committed patchset #2 (id:20001) manually as 43485 (presubmit successful).
5 years, 10 months ago (2015-02-04 21:28:02 UTC) #6
Paul Berry
5 years, 10 months ago (2015-02-04 21:34:44 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/880313006/diff/20001/pkg/analysis_server/tool...
File pkg/analysis_server/tool/spec/spec_input.html (right):

https://codereview.chromium.org/880313006/diff/20001/pkg/analysis_server/tool...
pkg/analysis_server/tool/spec/spec_input.html:481: that are not also in one of
the excluded paths and do not start with
IMHO this is ambiguous.  It's not clear whether "do not start with a dot" is
referring to the filename or a path component starting with a ".", and if it's
referring to a path component it's not clear which path component.

If I understand the code change correctly I believe that directories descended
from the analysis root will be excluded from analysis if the directory name
begins with ".", but that files whose names begin with "." will in general still
be analyzed.  Also, if an analysis root contains a path component that begins
with ".", that will not prevent analysis.

Powered by Google App Engine
This is Rietveld 408576698