Diagnostic Analyzers in Visual Studio 2015: First Look
Learn how the most powerful features of Visual Studio 2015 - diagnostic analyzers, code fixes, and refactorings - let you automate code quality issues. You’ll learn how to find, understand, and create analyzers so you can get back to real work.
What you'll learn
Visual Studio 2015 leverages the power of Roslyn to add powerful new diagnostic features: diagnostic analyzers, code fixes, and refactorings. This course begins by teaching you how to find and install analyzers for individual projects or your machine. It then teaches you how to understand existing analyzers and build new ones. The power lies in writing or tweaking analyzers so they align with your team. This lets you switch effort from mundane code quality issue to building applications.
Table of contents
- What You'll Learn 1m
- Combining Analyzers and Updating Templates 6m
- Planning Multiple Code Fixes 3m
- Testing with the Enhanced Test Infrastructure 3m
- Exploring the Enhanced Test Infrastructure 5m
- Building the Empty Catch Block Analyzer 2m
- Creating and Testing Multiple Code Fixes 1m
- Removing the Try Statement 2m
- Adding Comments 1m
- Removing Braces 2m
- Adding and Exception and Re-throwing 1m
- Testing Multiple Code Fixes 1m
- Summary 1m
- What You'll Learn 1m
- Preparing for the Sealed Attribute Diagnostic 5m
- Using the Semantic Model in an Analyzer 4m
- A Diagnostic to Find Local Variables That Could Be Constants 1m
- Using the Language Specification to Understand Sample Code 5m
- Building an Analyzer to Find Variables That Could Be Constant 1m
- Determining Whether a Declaration Could Ever Be a Constant 4m
- Determining if Variables Are Assigned Outside the Initializer 3m
- Creating a Code Fix to Make Local Variables Constants 4m
- Debugging Analyzers That Have Tests 2m
- Summary 2m
- What You'll Learn 0m
- Registering Other Actions 5m
- Specifying the Language Version for an Analyzer 3m
- Analyzing Whether Expression Body Members Are Legal 2m
- Creating the Expression Body Code Fix 3m
- Refactorings 6m
- Creating Logical Refactorings 2m
- Preparing for a “var” Roslyn Refactoring 3m
- Creating a Roslyn Refactoring 3m
- Testing the Refactoring 2m
- Summary 2m