Tuesday, November 23, 2004

Reflector.CodeMetrics is a new Addin for Reflector that analyses and computes several code quality metrics on your assemblies. This addin uses the excellent Reflector API to compute classic metrics such as the cyclomatic complexity or more straightforward such as the number of local variables in a method. All results can be dumped to file (using DataSet.Save)

Download Reflector.CodeMetrics (look for Reflector.CodeMetrics.zip) For installation and usage instructions, please read the Readme.txt enclosed in the zip file.

Tip: when you explore the result, you can doubleclick on the border of the row to show the item in the decompiler

 

posted on Wednesday, November 24, 2004 4:21:00 AM UTC  #    Comments [14]
Tracked by:
"american education" (online) [Trackback]
"dating directory" (online) [Trackback]
Monday, June 06, 2005 4:53:23 PM UTC
Hi, I'm running <a title="Reflector" href="http://www.aisto.com/roeder/dotnet/" target="_blank">Reflector</a> 4.1.16 and the CodeMetrics add-in fails to load. Any ideas?
Pieter Jansen van Vuuren
Monday, June 06, 2005 4:53:23 PM UTC
My Blog
Monday, June 06, 2005 4:53:24 PM UTC
I cannot repro this problem. What exactly are the steps that you take to make it fail. What is the failure that you get (if you double click on the message that says that the adding failed, you will get the exception trace)
Jonathan de Halleux
Monday, June 06, 2005 4:53:24 PM UTC
Hi,
<br>
<br>This is what I get
<br>
<br>System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the types in the assembly.
<br> at System.Reflection.Module.GetTypesInternal(StackCrawlMark&amp; stackMark)
<br> at System.Reflection.Assembly.GetTypes()
<br> at _1._1(IServiceProvider )
<br> at _5._1(String )
<br>
<br>I've extracted the files in the zip to the same dir as <a title="Reflector" href="http://www.aisto.com/roeder/dotnet/" target="_blank">Reflector</a> and then I in Relecter I select View/Add-Ins and then Add and select the <a title="Reflector" href="http://www.aisto.com/roeder/dotnet/" target="_blank">Reflector</a>.CodeMetrics.dll and then I get that it failed to load.
<br>
pieter (at) psh.co.za (Pieter Jansen van Vuuren)
Monday, June 06, 2005 4:53:24 PM UTC
When will <a title="QuickGraph, 100% C# directed graph library" href="http://mbunit.tigris.org" target="_blank">QuickGraph</a> be availible as a separate library (I mean with all that automatic building process with <a title="TestDriven.NET" href="http://www.testdriven.net" target="_blank">TestDriven.NET</a> it should be trivial ;).
<br>Are we going to see some beta with support for generics as the Beta of Framework 2.0 has been out for some while?
Sergio
Monday, June 06, 2005 4:53:24 PM UTC
I failed to load for me, while I was trying keep the CodeMetric files in a separate directory. When I copied them into the same folder as the rest of me <a title="Reflector" href="http://www.aisto.com/roeder/dotnet/" target="_blank">Reflector</a> related binaries (replacing some older files), it loaded.
<br>
<br>
<br>Which leads to the problem I'm seeing. When first diplayed, the horizontal scrollbar is the wrong size (about 80% of the width of the pane) and often in the wrong place (over the third row down as often as it's on the bottom)
<br>
<br>Resizing the windows or splitter fixes the problem (but only for the currently displayed tab)
James Curran
Monday, June 06, 2005 4:53:24 PM UTC
Damn! Damn! Damn! This means I need to merge my assemblies into one
Jonathan de Halleux
Monday, June 06, 2005 4:53:25 PM UTC
Could you please explain (or simply give a link for) meanings of metrics that are used in CodeMetrics.
Alex Titovich
Monday, June 06, 2005 4:53:25 PM UTC
Never mind, I've got the info from code.
Alex Titovich
Monday, June 06, 2005 4:53:25 PM UTC
I'll comment those in the next release.
Jonathan de Halleux
Monday, June 06, 2005 4:53:31 PM UTC
The link to <a target="_new" href="http://www.dotnetwiki.org/">http://www.dotnetwiki.org/</a> is down...
David M. Kean
Monday, June 06, 2005 4:53:31 PM UTC
Yup, dotnetwiki is still down.
William Forney
Monday, June 06, 2005 4:53:31 PM UTC
dotnetwiki allway down ?
ludo
Monday, June 06, 2005 4:53:32 PM UTC
Eric Gunnerson's C# Compendium
Comments are closed.