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