Episode

Roslyn Analyzers

with Robert Green, Mika Dumont, Andrew Hall

Mika Dumont and Andrew Hall show how you can use the Roslyn analyzers to inspect and improve your code, and also how to create an analyzer of your own.

Chapters

  • 00:00 - Introduction and an overview of Roslyn and analyzers
  • 02:15 - Demo of analyzers and suggested code fixes
  • 05:00 - Using editor.config to control the severity of code errors
  • 08:25 - Changing the default severity of a code violation
  • 09:30 - Adding an editor.config to your project
  • 11:20 - How analyzer recommendations vary based on language versions
  • 14:05 - Write your own analyzer
  • 17:20 - Syntax nodes and syntax node actions
  • 19:40 - Code fix providers and code actions
  • 23:30 - Provide analyzers as a NuGet package
  • 27:30 - Testing your analyzer
  • 33:20 - Wrap-up

Visual Studio