-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPackageAnalysis.cs
More file actions
57 lines (47 loc) · 1.83 KB
/
PackageAnalysis.cs
File metadata and controls
57 lines (47 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
namespace NetContextClient.Models;
/// <summary>
/// Model for an individual package analysis result
/// </summary>
public class PackageAnalysis
{
/// <summary>
/// Gets or sets the NuGet package identifier.
/// </summary>
public string PackageId { get; set; } = "";
/// <summary>
/// Gets or sets the current version of the package installed in the project.
/// </summary>
public string Version { get; set; } = "";
/// <summary>
/// Gets or sets a value indicating whether the package is actively used in the project.
/// </summary>
public bool IsUsed { get; set; }
/// <summary>
/// Gets or sets the list of file paths where the package is referenced or used.
/// </summary>
public List<string> UsageLocations { get; set; } = [];
/// <summary>
/// Gets or sets the latest available version of the package, if an update is available.
/// </summary>
public string? LatestVersion { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the package has known security vulnerabilities.
/// </summary>
public bool HasSecurityIssues { get; set; }
/// <summary>
/// Gets or sets the recommended action to take regarding this package (e.g., update, remove, etc.).
/// </summary>
public string? RecommendedAction { get; set; }
/// <summary>
/// Gets or sets a value indicating whether a newer version of the package is available.
/// </summary>
public bool HasUpdate { get; set; }
/// <summary>
/// Gets or sets the list of packages that depend on this package.
/// </summary>
public List<string> TransitiveDependencies { get; set; } = [];
/// <summary>
/// Gets or sets a visual representation of the dependency graph as ASCII art.
/// </summary>
public string? DependencyGraph { get; set; }
}