This Visual Studio extension provides static code analysis for software developed with .NET.
C#
Switch branches/tags
Nothing to show
Latest commit 8486f05 Mar 14, 2015 @halllo halllo Update README.md
appveyor shield updated
Permalink
Failed to load latest commit information.
Documentation slides updated Nov 23, 2013
Sources Supported Version incremented Jul 21, 2014
.gitattributes ported to vs2013 Feb 8, 2014
.gitignore Initial commit Feb 19, 2013
README.md Update README.md Mar 14, 2015

README.md

Usus.NET Build status

This Visual Studio extension provides static code analysis for software developed with .NET. Usus.NET VSIX

The analysis can also be performed in code.

//var metrics = Analyze.PortableExecutables(assemblyToAnalyze);
var metrics = Analyze.Me();
foreach (var method in metrics.Methods)
{
	Console.WriteLine("Signature: " + method.Signature);
	Console.WriteLine("CC: " + method.CyclomaticComplexity);
}

The result of the analysis can be rated and filtered for hotspots.

RatedMetrics rated = metrics.Rate();
double acd = rated.AverageComponentDependency;
int cyclicNamespaces = rated.NamespacesWithCyclicDependencies;

MetricsHotspots hotspots = metrics.Hotspots();
var complicatedMethods = hotspots.OfCyclomaticComplexity();
var bigClasses = hotspots.OfClassSizeOver(10);

Usus.NET works with Visual Studio 2010, 2012 and 2013. The code to compile the extension for 2013 is in the master branch while the code for 2010 and 2012 can be found in their respective branches. The Visual Studio SDK in the correpsonding version is needed to compile any version of Usus.NET.