Permalink
Browse files

masterthesis and presentation as documentation added; better readme

  • Loading branch information...
1 parent 2c0b7b9 commit b9a9ebad388cf4d4eac6ed2458061bb22ca018cd @halllo halllo committed Sep 12, 2012
Showing with 23 additions and 1 deletion.
  1. BIN Documentation/Usus.NET.pdf
  2. BIN Documentation/masterthesis.pdf
  3. +23 −1 README.md
View
Binary file not shown.
Binary file not shown.
View
@@ -1,4 +1,26 @@
Usus.NET
========
-This Visual Studio extension provides static code analysis for software developed with .NET.
+This Visual Studio extension provides static code analysis for software developed with .NET.
+
+The analysis can also be performed in code.
+```csharp
+//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.
+```csharp
+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);
+```

0 comments on commit b9a9eba

Please sign in to comment.