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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library pubspec_field_validator; 5 library pubspec_field_validator;
6 6
7 import '../entrypoint.dart'; 7 import '../entrypoint.dart';
8 import '../system_cache.dart'; 8 import '../system_cache.dart';
9 import '../validator.dart'; 9 import '../validator.dart';
10 10
(...skipping 25 matching lines...) Expand all
36 'email address (e.g. "name <email>").'); 36 'email address (e.g. "name <email>").');
37 } 37 }
38 } 38 }
39 } 39 }
40 40
41 var homepage = pubspec.fields['homepage']; 41 var homepage = pubspec.fields['homepage'];
42 if (homepage == null) { 42 if (homepage == null) {
43 errors.add('pubspec.yaml is missing a "homepage" field.'); 43 errors.add('pubspec.yaml is missing a "homepage" field.');
44 } 44 }
45 45
46 var description = pubspec.fields['description'];
47 if (description == null) {
48 errors.add('pubspec.yaml is missing a "description" field.');
49 }
50
46 return new Future.immediate(null); 51 return new Future.immediate(null);
47 } 52 }
48 } 53 }
OLDNEW
« 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