| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | |
| | | 4 | | namespace DirectSight.CodeAnalysis; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// The result of the risk hotspot analysis. |
| | | 8 | | /// </summary> |
| | | 9 | | public class RiskHotspotAnalysisResult |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Initializes a new instance of the <see cref="RiskHotspotAnalysisResult"/> class. |
| | | 13 | | /// </summary> |
| | | 14 | | /// <param name="riskHotspots">The risk hotspots.</param> |
| | | 15 | | /// <param name="codeCodeQualityMetricsAvailable">Indicates whether any code quality metrics exists.</param> |
| | 2 | 16 | | public RiskHotspotAnalysisResult(IReadOnlyCollection<RiskHotspot> riskHotspots, bool codeCodeQualityMetricsAvailable |
| | 2 | 17 | | { |
| | 2 | 18 | | this.RiskHotspots = riskHotspots ?? throw new ArgumentNullException(nameof(riskHotspots)); |
| | 2 | 19 | | this.CodeCodeQualityMetricsAvailable = codeCodeQualityMetricsAvailable; |
| | 2 | 20 | | } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets the risk hotspots. |
| | | 24 | | /// </summary> |
| | 4 | 25 | | public IReadOnlyCollection<RiskHotspot> RiskHotspots { get; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets a value indicating whether any code quality metrics exists. |
| | | 29 | | /// </summary> |
| | 2 | 30 | | public bool CodeCodeQualityMetricsAvailable { get; } |
| | | 31 | | } |