OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |