Esempio n. 1
0
 public IEnumerable <PackageVerifierIssue> Validate(PackageAnalysisContext context)
 {
     if (context.PackageReader.IsSatellitePackage())
     {
         if (context.Metadata.Summary.Contains("{"))
         {
             yield return(PackageIssueFactory.Satellite_PackageSummaryNotLocalized());
         }
         if (context.Metadata.Title.Contains("{"))
         {
             yield return(PackageIssueFactory.Satellite_PackageTitleNotLocalized());
         }
         if (context.Metadata.Description.Contains("{"))
         {
             yield return(PackageIssueFactory.Satellite_PackageDescriptionNotLocalized());
         }
     }
 }
Esempio n. 2
0
 public IEnumerable <PackageVerifierIssue> Validate(IPackageRepository packageRepo, IPackage package, IPackageVerifierLogger logger)
 {
     if (package.IsSatellitePackage())
     {
         if (package.Summary.Contains("{"))
         {
             yield return(PackageIssueFactory.Satellite_PackageSummaryNotLocalized());
         }
         if (package.Title.Contains("{"))
         {
             yield return(PackageIssueFactory.Satellite_PackageTitleNotLocalized());
         }
         if (package.Description.Contains("{"))
         {
             yield return(PackageIssueFactory.Satellite_PackageDescriptionNotLocalized());
         }
     }
     yield break;
 }