56 references to ReportType
NuGet.CommandLine.XPlat (56)
Commands\PackageReferenceCommands\ListPackage\ListPackageArgs.cs (6)
23public ReportType ReportType { get; } 54ReportType reportType, 85case ReportType.Default: 87case ReportType.Deprecated: 90case ReportType.Outdated: 93case ReportType.Vulnerable:
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (7)
125var reportType = GetReportType( 156private static ReportType GetReportType(bool isDeprecated, bool isOutdated, bool isVulnerable) 164return ReportType.Default; 168return isDeprecated ? ReportType.Deprecated : isOutdated ? ReportType.Outdated : ReportType.Vulnerable; 211if (packageRefArgs.ReportType != ReportType.Outdated &&
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (9)
141if (listPackageArgs.ReportType != ReportType.Default) // generic list package is offline -- no server lookups 152if (listPackageArgs.ReportType == ReportType.Vulnerable && listPackageArgs.AuditSources != null && listPackageArgs.AuditSources.Count > 0) 166bool filterPackages = FilterPackages(frameworks, listPackageArgs) || ReportType.Default == listPackageArgs.ReportType; 352case ReportType.Default: break; // No filtering in this case 353case ReportType.Outdated: 359case ReportType.Deprecated: 365case ReportType.Vulnerable: 569if (listPackageArgs.ReportType == ReportType.Outdated && matchingPackage.Count > 0) 608if (listPackageArgs.ReportType == ReportType.Outdated && matchingPackage.Count > 0)
ListPackage\ListPackageConsoleRenderer.cs (15)
60if (listPackageReportModel.ListPackageArgs.ReportType == ReportType.Vulnerable && listPackageReportModel.AuditSourcesUsed.Count > 0) 84if (listPackageArgs.ReportType != ReportType.Default) 114if (listPackageArgs.ReportType != ReportType.Default && !printPackages) 118case ReportType.Outdated: 121case ReportType.Deprecated: 124case ReportType.Vulnerable: 130printPackages = printPackages || ReportType.Default == listPackageArgs.ReportType; 152case ReportType.Outdated: 155case ReportType.Deprecated: 158case ReportType.Vulnerable: 161case ReportType.Default: 239case ReportType.Outdated: 241case ReportType.Deprecated: 243case ReportType.Vulnerable: 245case ReportType.Default:
ListPackage\ListPackageJsonRenderer.cs (8)
139if (listPackageReportModel.ListPackageArgs.ReportType == ReportType.Default) 148if (listPackageReportModel.ListPackageArgs.ReportType == ReportType.Vulnerable && listPackageReportModel.AuditSourcesUsed.Count > 0) 236case ReportType.Outdated: 240case ReportType.Deprecated: 243case ReportType.Vulnerable: 279case ReportType.Outdated: 283case ReportType.Deprecated: 286case ReportType.Vulnerable:
Utility\ProjectPackagesPrintUtility.cs (11)
69ReportType reportType, 84latestVersion: reportType == ReportType.Outdated ? GetPackageVersion(p, useLatest: true) : null, 85vulnerabilities: reportType == ReportType.Vulnerable ? p.ResolvedPackageMetadata.Vulnerabilities?.ToList() : null, 86deprecationReasons: reportType == ReportType.Deprecated ? p.ResolvedPackageMetadata.GetDeprecationMetadataAsync().Result : null, 87alternativePackage: reportType == ReportType.Deprecated ? (p.ResolvedPackageMetadata.GetDeprecationMetadataAsync().Result)?.AlternatePackage : null 135case ReportType.Outdated: 139case ReportType.Deprecated: 145case ReportType.Vulnerable: 293case ReportType.Outdated: 296case ReportType.Deprecated: 300case ReportType.Vulnerable: