/awesome-analyzers

A curated list of .NET Compiler Platform ("Roslyn") diagnostic analyzers and code fixes. Everyone can contribute here!

awesome-analyzers

A curated list of .NET Compiler Platform ("Roslyn") diagnostic analyzers and code fixes Everyone can contribute here!

Getting Started

How to create your first analyzer

Analyzers

List of popular analyzers

  • Code Cracker - An analyzer library for C# and VB that uses Roslyn to produce refactorings, code analysis, and other niceties
  • StyleCopAnalyzers - An implementation of StyleCop rules using the .NET Compiler Platform
  • CSharpEssentials - C# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features.
  • RoslynClrHeapAllocationAnalyzer - Roslyn based C# heap allocation diagnostic analyzer that can detect explicit and many implicit allocations like boxing, display classes a.k.a closures, implicit delegate creations, etc
  • RefactoringEssentials - Free Visual Studio 2015 extension for C# and VB.NET refactorings, including code best practice analyzers to improve your projects.
  • Wintellect.Analyzers - .NET Compiler Platform ("Roslyn") diagnostic analyzers and code fixes written by Wintellect
  • roslyn-analyzers - Several Roslyn diagnostic analyzers developed and maintained by the Roslyn team. Contains : AsyncPackage, Desktop.Analyzers, MetaCompilation, Microsoft.AnalyzerPowerPack, Microsoft.CodeAnalysis.Analyzers, Microsoft.Net.RoslynDiagnostics, System.Runtime.Analyzers, System.Runtime.InteropServices.Analyzers
  • sonarlint-vs - SonarLint is a Visual Studio 2015 extension that provides on-the-fly feedback to developers on new bugs and quality issues injected into C# code.
  • Roslynator - A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn.
  • .NET Analyzers GitHub organization - An organization for the development of analyzers (diagnostics, code fixes, and refactorings) using the .NET Compiler Platform.
  • Public API analyzer - Helps tracking reusable code public API exposure, aids in proper encapsulation.
  • AsyncFixer - Advanced Async/Await Diagnostics and CodeFixes for C#.
  • ErrorProne.NET - ErrorProne.NET is a set of Roslyn-based analyzers that will help you to write correct code. The idea is similar to Google's error-prone but focusing on correctness (and, maybe, performance) of C# programs.
  • SecurityCodeScan - Vulnerability Patterns Detector for C# and VB.NET.
  • NetFabric.Hyperlinq.Analyzer - Best practices for collection enumeration in C#.
  • Puma Scan - Security analyzer that provides real time, continuous source code analysis for C# applications.
  • SmartAnalyzers.ExceptionAnalyzer - A set of Roslyn analyzers related to exceptions usages.
  • SmartAnalyzers.MultithreadingAnalyzer - A set of Roslyn analyzers related to multithreading

Tools

Free and online tools

  • Roslyn Quoter Roslyn tool that for a given C# program shows syntax tree API calls to construct its syntax tree

Blogs

Blogs talking about Roslyn analyzers