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

Unified Diff: sdk/lib/_internal/pub/lib/src/validator/name.dart

Issue 342553002: Respect git's ignore rules pervasively in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review, performance improvements Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/validator/name.dart
diff --git a/sdk/lib/_internal/pub/lib/src/validator/name.dart b/sdk/lib/_internal/pub/lib/src/validator/name.dart
index 1b77ead1bee1f786eb88a31d165deef021d8c524..b939ac81fcf042ac4b502ed259bfc9dfcbc5b7f9 100644
--- a/sdk/lib/_internal/pub/lib/src/validator/name.dart
+++ b/sdk/lib/_internal/pub/lib/src/validator/name.dart
@@ -53,7 +53,7 @@ class NameValidator extends Validator {
List<String> get _libraries {
var libDir = path.join(entrypoint.root.dir, "lib");
if (!dirExists(libDir)) return [];
- return listDir(libDir, recursive: true)
+ return entrypoint.root.listFiles(beneath: libDir)
.map((file) => path.relative(file, from: path.dirname(libDir)))
.where((file) => !path.split(file).contains("src") &&
path.extension(file) == '.dart')

Powered by Google App Engine
This is Rietveld 408576698