Index: sdk/lib/_internal/pub_generated/lib/src/validator.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/validator.dart b/sdk/lib/_internal/pub_generated/lib/src/validator.dart |
similarity index 75% |
copy from sdk/lib/_internal/pub/lib/src/validator.dart |
copy to sdk/lib/_internal/pub_generated/lib/src/validator.dart |
index 7bdcdc999aacc3fda50304faca0c77be80ca3d3d..25e68435d3ba396519f991cf62f01fe9e55bc848 100644 |
--- a/sdk/lib/_internal/pub/lib/src/validator.dart |
+++ b/sdk/lib/_internal/pub_generated/lib/src/validator.dart |
@@ -55,30 +55,27 @@ abstract class Validator { |
/// [packageSize], if passed, should complete to the size of the tarred |
/// package, in bytes. This is used to validate that it's not too big to |
/// upload to the server. |
- static Future<Pair<List<String>, List<String>>> runAll( |
- Entrypoint entrypoint, [Future<int> packageSize]) { |
+ static Future<Pair<List<String>, List<String>>> runAll(Entrypoint entrypoint, |
+ [Future<int> packageSize]) { |
var validators = [ |
- new LicenseValidator(entrypoint), |
- new NameValidator(entrypoint), |
- new PubspecFieldValidator(entrypoint), |
- new DependencyValidator(entrypoint), |
- new DependencyOverrideValidator(entrypoint), |
- new DirectoryValidator(entrypoint), |
- new ExecutableValidator(entrypoint), |
- new CompiledDartdocValidator(entrypoint), |
- new Utf8ReadmeValidator(entrypoint), |
- new SdkConstraintValidator(entrypoint) |
- ]; |
+ new LicenseValidator(entrypoint), |
+ new NameValidator(entrypoint), |
+ new PubspecFieldValidator(entrypoint), |
+ new DependencyValidator(entrypoint), |
+ new DependencyOverrideValidator(entrypoint), |
+ new DirectoryValidator(entrypoint), |
+ new ExecutableValidator(entrypoint), |
+ new CompiledDartdocValidator(entrypoint), |
+ new Utf8ReadmeValidator(entrypoint), |
+ new SdkConstraintValidator(entrypoint)]; |
if (packageSize != null) { |
validators.add(new SizeValidator(entrypoint, packageSize)); |
} |
- return Future.wait(validators.map((validator) => validator.validate())) |
- .then((_) { |
- var errors = |
- flatten(validators.map((validator) => validator.errors)); |
- var warnings = |
- flatten(validators.map((validator) => validator.warnings)); |
+ return Future.wait( |
+ validators.map((validator) => validator.validate())).then((_) { |
+ var errors = flatten(validators.map((validator) => validator.errors)); |
+ var warnings = flatten(validators.map((validator) => validator.warnings)); |
if (!errors.isEmpty) { |
log.error("Missing requirements:"); |