#VS2015 – Code Lens Health Indicator, code metrics in the source code editor

Hola!

Again Visual Studio Extension Friday. Today’s extension allows you to get an online “maintainability index” of your code. I need to go back to the year 2008 to find my firsts posts on Code Metrics in Visual Studio. The final value for this is a value between 0 and 100, which display the health of our code:

Maintainability Index = Cyclomatic Complexity, Depth of Inheritance, Class Coupling, and Lines of Code.

This extension implementation is similar, but the core is not the same (as soon as MS people share the internal formula, I’ll Update this post)

The IDE integration is very cool. Next image displays a sample with an ugly portion of code on it.

So you’re advised !!!, if you need an online remember of COMPLEX CODE, this is it !!!

Enjoy your weekend!

Saludos @ Madrid

/El Bruno

References

– Microsoft Code Lens Health Indicator https://visualstudiogallery.msdn.microsoft.com/54b2682c-47f4-48ee-9d6d-190402330c49

– Visual Studio 2008 Code Metrics http://geeks.ms/blogs/elbruno/archive/2007/09/28/vs2008-code-metrics.aspx

– HowTo: Incorporar Code Metrics en la ejecución de una Build https://elbruno.com/2011/07/13/teambuild2010-howto-incorporar-code-metrics-en-la-ejecucin-de-una-build/

Advertisements

One thought on “#VS2015 – Code Lens Health Indicator, code metrics in the source code editor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s