Chapter 4. Making Your Code Better

So far, we have learned how ReSharper can help you write code and improve navigation around your project. In this chapter, we will focus on one of the most notable ReSharper features—code analysis.

In this chapter, we will cover the following topics:

  • Code quality analysis
  • Eliminating errors and code smells

Code quality analysis

The fact that you can compile your code does not mean your code is good. It does not even mean it will work. There are many things that can easily break your code. A good example is an unhandled NullReferenceException. You will be able to compile your code and you will be able to run your application, but there will be a problem.

ReSharper v8 comes with more than 1400 code analysis rules and ...

Get ReSharper Essentials now with O’Reilly online learning.

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