Visual Studio 2010 code metrics at the functional level

I performed the calculation of code metrics in my project and see the results for each namespace / class in the project. I would like to see the results at the function level. Even the filter still works at the class level. Is there any way to do this? For example, I want to see any functions where the cyclic complexity exceeds 10 or those that have more than 20 lines. Thank!

-Shane

+3
source share
2 answers

You can export the results to Excel. This can be done by clicking the "Open List in Microsoft Excel" button in the "Code Processing Results" window. Once you have the list in the Excel spreadsheet, you can filter the "Region" column for the member only. This will give you only methods and properties. Then from there you can also filter the remaining columns to the desired values ​​(e.g. Cyclomatic Complexity> 10). This will give the results you want. Its a little more powerful for reasoning about results if you know your way around Excel.

+1
source

, . Understand , :

http://www.scitools.com/

0

Source: https://habr.com/ru/post/1765907/


All Articles