We can find out how severe a potential problem is via a complexity trend analysis, which looks at the accumulated complexity of the file over time. The trend is calculated by fetching each historic version of a hotspot and calculating the code complexity of each historic revision.

You will soon learn more about how complexity is calculated, but let’s start with a specific example from our top hotspot. As you see in the figure, ControllerActionInvokerTest.cs has become much more complicated recently.[21]

images/hotspots/complexity-trend.png

The trend tells the story of our hotspot. We see that it grew dramatically back in May 2016. Since then ...

Get Software Design X-Rays now with O’Reilly online learning.

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