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 ...

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

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