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

Unified Diff: utils/pub/validator.dart

Issue 11444018: Add a validator that checks package names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix tests. Created 8 years 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: utils/pub/validator.dart
diff --git a/utils/pub/validator.dart b/utils/pub/validator.dart
index d5ab53c6c1874a84d7112455b489d11ade340ef0..584a21416f3d054554c614d593bf77184e529703 100644
--- a/utils/pub/validator.dart
+++ b/utils/pub/validator.dart
@@ -8,6 +8,7 @@ import 'entrypoint.dart';
import 'io.dart';
import 'system_cache.dart';
import 'utils.dart';
+import 'validator/name.dart';
import 'validator/pubspec_field.dart';
/// The base class for validators that check whether a package is fit for
@@ -37,6 +38,7 @@ abstract class Validator {
static Future<Pair<List<String>, List<String>>> runAll(
Entrypoint entrypoint) {
var validators = [
+ new NameValidator(entrypoint),
new PubspecFieldValidator(entrypoint)
];

Powered by Google App Engine
This is Rietveld 408576698