There are quite a few code analyzers on GitHub. A quick search returns 28 possible C# code analyzers out of 72 repository results. A few of these seem to be student projects. Check those out too; there is some very clever code in some of them. As for this recipe, we will be working with CodeCracker for C# to demonstrate how to install an analyzer from a NuGet package.
Finding and installing analyzers
Getting ready
All that you will be doing is downloading a NuGet package for your project. Other than that, there is nothing you specifically need to do in order to get ready.
How to do it...
- Start off by creating a...