The Roslyn Metrics extension provides functionality to calculate code metrics for C# projects and displays calculation results in a tool window. The extension uses the Microsoft .NET Compiler Platform "Roslyn" API for the code analysis and metrics-results calculation. This is pre-release software that is not intended to be used in a live operating environment. The software is licensed "as-is" and you bear the risk of using it. I have created a project blog, where you can get all the information about the extension: http://codemetricsviewer.wordpress.com/ I am working on this extension in my leisure time - and I am sharing it with you for free. You, as a developer know at best that software is never perfect - and in some cases, it might not work as expected. So, if you have any problems, please don´t hesitate to open a thread in the Q & A section or send me an email (you will find my email at the blog); I will try to do my best and I will respond as soon as possible. What is Roslyn Metrics and what is it for?Well, the Roslyn Metrics extension calculates the maintainability index, cyclomatic complexity, class coupling, depth of inheritance and lines of code for types and members of C# assembly projects contained in a Visual Studio solution. Code metrics are more or less concerned about to measure the evolvability of a software system, which is an indicator of the inner quality of software. Visual Studio supports the calculation of code metrics, but this extension will give you some nice little extra. For instance, filtering is intuitive and makes it easy to unveil hotspots; indicator icons on any metric result pinpoint to code issues, which do not affect the maintainability index but might also have an impact on code quality. The extension allows you to compare the current report to previously calculated results and shows trend icons indicating if things are changing to the worse. Where can I find the Roslyn Metrics Viewer in Visual Studio?The Code Metrics Viewer window is accessible via the "Other Windows" menu. You´ll also find the "Roslyn Metrics" command in the context menu of the solution root in the Solution Explorer. How can I calculate code metrics?After a solution was loaded, it can be analyzed by pressing the "Analyze Solution" button. Depending on the solution size, this can take a while... The results will be shown in the grid.
|