Chromium Code Reviews

Unified Diff: utils/pub/validator.dart

Issue 11474047: Validate that an uploaded package has a LICENSE file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | utils/pub/validator/license.dart » ('j') | utils/pub/validator/license.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator.dart
diff --git a/utils/pub/validator.dart b/utils/pub/validator.dart
index 584a21416f3d054554c614d593bf77184e529703..4de60ce3b4a179b344d1e26f02eef741afa4bfe0 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/license.dart';
import 'validator/name.dart';
import 'validator/pubspec_field.dart';
@@ -38,6 +39,7 @@ abstract class Validator {
static Future<Pair<List<String>, List<String>>> runAll(
Entrypoint entrypoint) {
var validators = [
+ new LicenseValidator(entrypoint),
new NameValidator(entrypoint),
new PubspecFieldValidator(entrypoint)
];
« no previous file with comments | « no previous file | utils/pub/validator/license.dart » ('j') | utils/pub/validator/license.dart » ('J')

Powered by Google App Engine