Reflector.CodeMetrics (preview)
Reflector.CodeMetrics (preview)
Submitted by pelikhan on Wed, 17/11/2004 - 19:50.This is a preview of a new Reflector Addin that computes various CodeMetrics on .Net assemblies. The excellent Reflector API makes it very easy to do this kind of things. Here are the metrics that I plan to implement :
- Counting metrics: Module/Assembly, Type/Module, Method/Type, etc...
- IL counting metrics: IL/Method, LocalVariables/Method, ExceptionHandlers/Method, etc...
- IL flow graph metrics: components, cyclomatic complexity,
- Method graph: methodrank, callers, callees, components, distance from entry point,
- Type graph: type rank, inherance level, etc...
I have not done an extensive research on the subject so I might forget a lot of them, suggestions and links welcome.
Note that this uses a plugin architecture so that anyone can write and use his own metric.
Screenshot:

