Seems pretty usable. It definitely communicates good information. I'm a little dodgy on how the scores are calculated. I've got some simple and highly reused code that only gets a score of 72. I haven't been able to create a method with a score between 80 and 99.
Great Tool, saves some time as you don't have to run the analysis all the time manually just to check you didn't sacrificed maintainability for that new fancy feature. Works even for web projects without a project file, which is neat as those get messy a lot faster than "normal" projects.
A must have tool! Although the description says "Only works on C#", it does work with VB.NET (at least as of March 2013).
Here's some improvement suggestions: - Explain what the numbers between parenthesis mean. For example, when one see "Maintainability Index: 41 (-25)" it should be obvious what (-25) means. - Somehow explain what is the target value (or range) for each metric. For example, what is an acceptable range for the cyclomatic complexity measure? - Change measure's color (in the Codelens area, not just in the pop-up) when it's outside of the target range in order to highlight the problem (maybe could use green, yellow, and red). - Measures could be refreshed more often (or changes could be detected). I sometimes have to close-reopen a file to have the score recomputed.
I noticed procedures that were not unduly complicated were being flagged making the procedures very distracting. It would be much better if you could configure the index rate level before flagging (color-coded underlines) procedures occurs.
While installing I got an error this could not be installed because of .net framework not available.
1/30/2015 01:00:44 PM - Install Error : Microsoft.VisualStudio.ExtensionManager.MissingTargetFrameworkException: The extension 'Microsoft CodeLens Code Health Indicator' requires a version of the .NET Framework that is not installed.
This is because 2015 has been installed. Other VISX suffer from this too. WebEssentials VISX has solved this.
Good idea, but displaying the maintainability index always makes the text visually more complex. Please provide an option to show only the green, yellow and red icons with a percentage; and another one to set a threshold. For example, show the indicator (a red square) above only those methods, which maintainability index is critical and display nothing above other methods.
I would like the UI to place a green, yellow or red filled box next to the maintainability score as this at a glance shows me where I might want to refactor.
I would also like to remove the colour from the refactor up/down change indication triangle.
Seems to work if you had it installed before you update to Update 2 or Update 3 RC.
The installer is looking for a specific version Microsoft.VisualStudio.Ultimate Version : [12.0,12.0.20827.3].
Can the installer be updated to include support for Update 2 and Update 3 versions?
I changed the installation target to the following and it still didnt show up in editor settings although extension manager says it's installed and enabled. Any ideas?
<InstallationTarget Id="Microsoft.VisualStudio.Premium" Version="[12.0,12.0.30501.00]" />
CodeLens is only supported in Visual Studio Ultimate. So you will not be able to see this indicator by installing the binaries in Visual Studio Premium. [Updating the installation target is not a supported operation by the way].
I have the same issue but for the premium version of VS2013
On main page says:
UPDATE: The extension has been updated to allow it to install on all versions of Visual Studio 2013 (including updates). that's not really true!
If you extract the vsix file (it's just a zip file), you can edit the "extension.vsixmanifest" file to change the supported version.
On my machine, I had to edit line 13 to read as follows:
<InstallationTarget Id="Microsoft.VisualStudio.Ultimate" Version="[12.0,12.0.30501.00]" />
Also, while it may have been obvious to me, I should also state that you'll need to zip up the directory again and change the extension to vsix first.
I used 7zip and it didn't work, so I just opened the original vsix file in 7zip and inserted my edited file over top of the existing one. Double-clicking on the vsix file detected my version of Visual Studio correctly and allowed me to install it.