Analyzing Code in .NET
summary
Shows that static analysis catches real bugs and speeds fixes by plugging analyzers into the editor: uses Roslyn compiler API and packages like MS.CodeAnalysis.NetAnalyzers and Sonar plus NUnit analyzers, demos IntelliTest surfacing a 366-day Zune hang, and writes a custom analyzer that flags calls to new Grid() and offers three code fixes — one replacing it with Grid.NewGrid fix which compiles cleanly in the Roslyn hive. Notes analyzer conflicts, a disabled disposable rule, and recommends treat warnings as errors and editorconfig to manage severities.
AI-written summary · about
chapters (14)
- 0:00Start
- 1:09What Code Analysis Is
- 14:21Intellitest
- 16:13Code Reviews
- 19:45Static Analysis Tools
- 23:59Demo
- 25:44Sonar Analyzer
- 26:22Ide Analyzers
- 30:04Treat Warnings as Errors
- 33:03The Editor Config
- 34:29Suppressing Configuration Options
- 44:57Code Fixes
- 45:12Build a Code Fix
- 46:59Create an Extensibility Project
related talks
01h 01mBuilding Code Analyzers with the new C# compiler platform (Roslyn)
57mRoslyn: The Craft of Static Analysis
54mContinuous Integration: Live Static Analysis using Visual Studio & the Roslyn API
53mEnforce Coding Standards in .NET: Overcome Broken Window Syndrome
01h 08mAnalyzing source code using Roslyn
43mOvercoming Broken Window Syndrome Code Verification Techniques for NET Develop
50mAutomate Yourself Out Of a Job With Roslyn
01h 00mAutomate Yourself Out of a Job with Roslyn
