public IEnumerable<PackageIssue> Validate(IPackage package) { var commandLineRules = new IPackageRule[] { new DefaultManifestValuesRule() }; return DefaultPackageRuleSet.Rules .Concat(commandLineRules) .SelectMany(p => p.Validate(package)); }
public IEnumerable <PackageIssue> Validate(IPackage package) { var commandLineRules = new IPackageRule[] { new DefaultManifestValuesRule() }; return(DefaultPackageRuleSet.Rules .Concat(commandLineRules) .SelectMany(p => p.Validate(package))); }
static DefaultPackageRuleSet() { IPackageRule[] list = new IPackageRule[] { new InvalidFrameworkFolderRule(), new MisplacedAssemblyRule(), new MisplacedScriptFileRule(), new MisplacedTransformFileRule(), new MissingSummaryRule(), new InitScriptNotUnderToolsRule(), new WinRTNameIsObsoleteRule() }; _rules = new ReadOnlyCollection <IPackageRule>(list); }