Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wpf toolkit assembly added and method hotspots know their class and n…
…amespace for better grouping
- Loading branch information
Showing
11 changed files
with
55 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
Sources/Usus.net.View/ViewModels/Hotspots/HotspotCyclomaticComplexity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,16 +1,22 @@ | |||
using System.Linq; | |||
using andrena.Usus.net.Core.Reports; | using andrena.Usus.net.Core.Reports; | ||
|
|
||
namespace andrena.Usus.net.View.ViewModels.Hotspots | namespace andrena.Usus.net.View.ViewModels.Hotspots | ||
{ | { | ||
public class HotspotCyclomaticComplexity : MethodHotspot | public class HotspotCyclomaticComplexity : MethodHotspot | ||
{ | { | ||
public int Complexity { get { return Report.CyclomaticComplexity; } } | private readonly MetricsReport mMetrics; | ||
|
|||
public int Complexity { get { return Report.CyclomaticComplexity; } } | |||
public string Method { get { return Report.Name; } } | public string Method { get { return Report.Name; } } | ||
public string Signature { get { return Report.Signature; } } | public string Signature { get { return Report.Signature; } } | ||
public string Type { get { return mMetrics.ForTypeOf(Report).FullName; } } | |||
public string Namespace { get { return mMetrics.ForTypeOf(Report).Namespaces.First(); } } | |||
|
|
||
public HotspotCyclomaticComplexity(MethodMetricsReport method) | public HotspotCyclomaticComplexity(MethodMetricsReport method, MetricsReport metrics) | ||
: base(method) | : base(method) | ||
{ | { | ||
mMetrics = metrics; | |||
} | } | ||
} | } | ||
} | } |
12 changes: 9 additions & 3 deletions
12
Sources/Usus.net.View/ViewModels/Hotspots/HotspotMethodLength.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,16 +1,22 @@ | |||
using System.Linq; | |||
using andrena.Usus.net.Core.Reports; | using andrena.Usus.net.Core.Reports; | ||
|
|
||
namespace andrena.Usus.net.View.ViewModels.Hotspots | namespace andrena.Usus.net.View.ViewModels.Hotspots | ||
{ | { | ||
public class HotspotMethodLength : MethodHotspot | public class HotspotMethodLength : MethodHotspot | ||
{ | { | ||
public int Length { get { return Report.MethodLength; } } | private readonly MetricsReport mMetrics; | ||
|
|||
public int Length { get { return Report.MethodLength; } } | |||
public string Method { get { return Report.Name; } } | public string Method { get { return Report.Name; } } | ||
public string Signature { get { return Report.Signature; } } | public string Signature { get { return Report.Signature; } } | ||
public string Type { get { return mMetrics.ForTypeOf(Report).FullName; } } | |||
public string Namespace { get { return mMetrics.ForTypeOf(Report).Namespaces.First(); } } | |||
|
|
||
public HotspotMethodLength(MethodMetricsReport method) | public HotspotMethodLength(MethodMetricsReport method, MetricsReport metrics) | ||
: base(method) | : base(method) | ||
{ | { | ||
mMetrics = metrics; | |||
} | } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters