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 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import '../entrypoint.dart'; | 9 import '../entrypoint.dart'; |
10 import '../system_cache.dart'; | 10 import '../system_cache.dart'; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 var description = pubspec.fields['description']; | 49 var description = pubspec.fields['description']; |
50 if (description == null) { | 50 if (description == null) { |
51 errors.add('Your pubspec.yaml is missing a "description" field.'); | 51 errors.add('Your pubspec.yaml is missing a "description" field.'); |
52 } | 52 } |
53 | 53 |
54 var version = pubspec.fields['version']; | 54 var version = pubspec.fields['version']; |
55 if (version == null) { | 55 if (version == null) { |
56 errors.add('Your pubspec.yaml is missing a "version" field.'); | 56 errors.add('Your pubspec.yaml is missing a "version" field.'); |
57 } | 57 } |
58 | 58 |
59 return new Future.immediate(null); | 59 return new Future.value(); |
60 } | 60 } |
61 } | 61 } |
OLD | NEW |