Calculating Code Metrics

Code Metrics is an interesting tool that analyzes a project or a solution and provides results about the ease of maintainability according to specific indices. To use the tool, select Analyze, Calculate Code Metrics or right-click the project name in Solution Explorer and then select the same-named command. The tool calculates code metrics according to the indices summarized in Table 51.3.

Image

TABLE 51.3 Code Metrics Analyzed Indices

To understand how it works, in Visual Studio 2015 open the Channel9_AsyncAwait sample project described in Chapter 42, “Asynchronous Programming.” Next, run the Code Metrics tool by selecting ...

Get Visual Basic 2015 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.