Chapter 8. Analyzing the code

This chapter covers

  • Using FxCop and StyleCop for static code analysis
  • Integrating FxCop and StyleCop into the CI process
  • Extending the CI process with custom rules
  • Using NDepend

Have you ever taken over a project to fix a bug or code a feature? In such a situation, did you feel uncertain, lost, or upset? How many times have you wanted to find the person who originally wrote the piece of code you’re working on and simply ... thank them warmly? If you’re living in the same world we are, this has happened to you at least a few times (see figure 8.1).

Figure 8.1. Always code as if the person who will maintain your code is a violent psychopath who knows where you live (picture courtesy of http://kkphoto.art.pl/ ...

Get Continuous Integration in .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.