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

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

Issue 11466020: Require a homepage field in pubspecs. (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. 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 | « no previous file | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator/pubspec_field.dart
diff --git a/utils/pub/validator/pubspec_field.dart b/utils/pub/validator/pubspec_field.dart
index 4c63d9bbec02cbc7e430f283fe3b76c1cb1e9475..e7e8ca733821bbe5c8bda3e1998e6dfa1e7b2125 100644
--- a/utils/pub/validator/pubspec_field.dart
+++ b/utils/pub/validator/pubspec_field.dart
@@ -43,6 +43,11 @@ class PubspecFieldValidator extends Validator {
errors.add('pubspec.yaml is missing a "homepage" field.');
}
+ var description = pubspec.fields['description'];
+ if (description == null) {
+ errors.add('pubspec.yaml is missing a "description" field.');
+ }
+
return new Future.immediate(null);
}
}
« no previous file with comments | « no previous file | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698