| | | 1 | | using System.Collections.Generic; |
| | | 2 | | using DirectSight.Parser.Analysis; |
| | | 3 | | |
| | | 4 | | namespace DirectSight.CodeAnalysis; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents a risk hotspot. |
| | | 8 | | /// </summary> |
| | | 9 | | public class RiskHotspot |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Initializes a new instance of the <see cref="RiskHotspot"/> class. |
| | | 13 | | /// </summary> |
| | | 14 | | /// <param name="assembly">The assembly.</param> |
| | | 15 | | /// <param name="class">The class.</param> |
| | | 16 | | /// <param name="methodMetric">The method metric.</param> |
| | | 17 | | /// <param name="statusMetrics">The metric with status.</param> |
| | | 18 | | /// <param name="fileIndex">The index of the corresponding file within the classes files.</param> |
| | 0 | 19 | | public RiskHotspot(Assembly assembly, Class @class, MethodMetric methodMetric, IEnumerable<MetricStatus> statusMetri |
| | 0 | 20 | | { |
| | 0 | 21 | | this.Assembly = assembly; |
| | 0 | 22 | | this.Class = @class; |
| | 0 | 23 | | this.MethodMetric = methodMetric; |
| | 0 | 24 | | this.StatusMetrics = statusMetrics; |
| | 0 | 25 | | this.FileIndex = fileIndex; |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets the assembly. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public Assembly Assembly { get; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets the class. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public Class Class { get; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets the method metric. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public MethodMetric MethodMetric { get; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets the metric with status. |
| | | 45 | | /// </summary> |
| | 0 | 46 | | public IEnumerable<MetricStatus> StatusMetrics { get; } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Gets the index of the corresponding file within the classes files. |
| | | 50 | | /// </summary> |
| | 0 | 51 | | public int FileIndex { get; } |
| | | 52 | | } |