Creating a code analyzer
Some of you might already see the benefit of creating your own code analyzer. Being able to control certain design implementations and coding standards specific to your team is invaluable. This is especially true for new developers joining your team. I remember when I started working for a company a couple of years back; the development manager gave me a document of code standards that I needed to adhere to. At the time this was great. It showed me that they cared about code standards. Back then, of course, developers didn't have code analyzers. It was however quite a challenge keeping track of all the standards that I needed to implement. This was especially true for the specific code standards that the company implemented.
Getting ready
Before you can create your own code analyzer, you need to ensure that you have installed the .NET Compiler Platform SDK
. To do this, perform the following steps:
- Add a new project to your solution and click on
Extensibility
. Select...