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

Unified Diff: utils/pub/validator/compiled_dartdoc.dart

Issue 14297021: Move pub into sdk/lib/_internal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disallow package: imports of pub. Created 7 years, 8 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
« no previous file with comments | « utils/pub/validator.dart ('k') | utils/pub/validator/dependency.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator/compiled_dartdoc.dart
diff --git a/utils/pub/validator/compiled_dartdoc.dart b/utils/pub/validator/compiled_dartdoc.dart
deleted file mode 100644
index 45a8fbaf2299dfc94ff26c1a28ce9d25440fe552..0000000000000000000000000000000000000000
--- a/utils/pub/validator/compiled_dartdoc.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library compiled_dartdoc_validator;
-
-import 'dart:async';
-
-import 'package:pathos/path.dart' as path;
-
-import '../entrypoint.dart';
-import '../io.dart';
-import '../utils.dart';
-import '../validator.dart';
-
-/// Validates that a package doesn't contain compiled Dartdoc
-/// output.
-class CompiledDartdocValidator extends Validator {
- CompiledDartdocValidator(Entrypoint entrypoint)
- : super(entrypoint);
-
- Future validate() {
- return new Future.sync(() {
- for (var entry in listDir(entrypoint.root.dir, recursive: true)) {
- if (path.basename(entry) != "nav.json") continue;
- var dir = path.dirname(entry);
-
- // Look for tell-tale Dartdoc output files all in the same directory.
- var files = [
- entry,
- path.join(dir, "index.html"),
- path.join(dir, "styles.css"),
- path.join(dir, "dart-logo-small.png"),
- path.join(dir, "client-live-nav.js")
- ];
-
- if (files.every((val) => fileExists(val))) {
- warnings.add("Avoid putting generated documentation in "
- "${path.relative(dir)}.\n"
- "Generated documentation bloats the package with redundant "
- "data.");
- }
- }
- });
- }
-}
« no previous file with comments | « utils/pub/validator.dart ('k') | utils/pub/validator/dependency.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698