Extending Visual Studio Analyzer
Guidelines for Customizing Your Application
Understanding How Visual Studio Analyzer Works