awesome-analyzers

Analyzer toolkit

A curated list of tools and resources for writing and using diagnostic analyzers in the .NET Compiler Platform (Roslyn)

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

GitHub

540 stars
36 watching
36 forks
last commit: almost 3 years ago
Linked from 2 awesome lists


awesome-analyzers / Getting Started

Use Roslyn to Write a Live Code Analyzer for Your APIMSDN Magazine by Alex Turner
Adding a Code Fix to Your Roslyn AnalyzerMSDN Magazine by Alex Turner
How To Write a C# Analyzer and Code Fix19,145almost 2 years agoRoslyn wiki
ASP.NET Core middleware with Roslyn Analyzerselmah.io blog by Thomas Ardal
.NET Analyzers GitHub organizationAn organization for the development of analyzers (diagnostics, code fixes, and refactorings) using the .NET Compiler Platform
roslyn-analyzers1,598almost 2 years agoOfficial Roslyn diagnostic analyzers developed and maintained by the Roslyn team. Contains:
StyleCopAnalyzers2,674almost 2 years agoAn implementation of StyleCop rules using the .NET Compiler Platform
Wintellect.Analyzers91almost 10 years ago.NET Compiler Platform ("Roslyn") diagnostic analyzers and code fixes written by Wintellect
sonarlint-vs468almost 2 years agoSonarLint is a Visual Studio 2015 extension that provides on-the-fly feedback to developers on new bugs and quality issues injected into C# code
sonar-dotnet802almost 2 years agothe Sonar Roslyn analyzers which are powering SonarLint. They are also published as NuGet package
Roslynator3,130almost 2 years agoA collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn
ErrorProne.NET901almost 2 years agoErrorProne.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
Gu.AnalyzersRoslyn analyzers and fixes
Meziantou.AnalyzerA Roslyn analyzer to enforce some good practices in C#
SharpSource37about 2 years agoA collection of analyzers that aim to surface defects at compile that would otherwise go unnoticed until it's too late
Blowin.Required4almost 5 years agoImplementation of proposal 'Required Properties'
BlowinCleanCode15over 3 years agoBlowinCleanCode is a Roslyn-based C# code analyzer that aims to provide a set of rules that helps to simplify code and make it cleaner
Selectorlyzer.Analyzers8almost 2 years agoSelectorlyzer.Analyzers is a highly customizable Roslyn Analyzer designed to empower developers with the ability to create project-specific analyzers using a CSS selector-like syntax
Menees.Analyzers22over 2 years agoRoslyn-based C# code analyzers. Various analyzers ported from StyleCop+
SecurityCodeScan942about 2 years agoVulnerability Patterns Detector for C# and VB.NET
Puma ScanSecurity analyzer that provides real time, continuous source code analysis for C# applications
AngleSharpAngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification
AspNetCoreAnalyzersAnalyzers for Microsoft.AspNetCore
AsyncFixerAdvanced Async/Await Diagnostics and CodeFixes for C#
SmartAnalyzers.MultithreadingAnalyzer30about 7 years agoA set of Roslyn analyzers related to multithreading
AsyncifyAsyncify-CSharp is an analyzer and codefix that allows you to quickly update your code to use the Task Asynchronous Programming model. This model, introduced in C# 5, adds an intuitive way of handling asynchronous calls within C#. The analyzer allows large codebases to be easily modified to use the TAP model by finding violations and applying fixes up the call tree
Microsoft.VisualStudio.Threading.AnalyzersStatic code analyzer to detect common mistakes or potential issues regarding threading and async coding
Moq.AnalyzersRoslyn analyzer that helps to write unit tests using Moq mocking library by highlighting typical errors and suggesting quick fixes. Port of Resharper extension to Roslyn. Find the full list of detected issues at project GitHub page
Roslynator.Testing.CSharp.XunitTesting framework for Roslyn analyzers, refactorings and code fixes
xunit.analyzersCode Analyzers for projects using xUnit.net that help find and fix frequent issues when writing tests
ZeroFormatter.AnalyzerAnalyzer of ZeroFormatter, verify rule for [ZeroFormattable] classes
ClosedTypeHierarchyDiagnosticSuppressor50almost 2 years agoRoslyn-based C# diagnostic suppressor that enhances the exhaustiveness checks for the closed type hierarchy pattern aka discriminated unions
OneOfDiagnosticSuppressor14over 2 years agoRoslyn-based C# diagnostic suppressor that enhances the exhaustiveness checks of from the and thus enables effective use of native as an alternative to the library's own and methods
NSubstitute.Analyzers2,704almost 2 years agoProvides diagnostic analyzers to warn about incorrect usage of NSubstitute in C# or VB
System.IO.Abstractions.Analyzers25almost 2 years agoAnalyzer for helping using package
MappingGenerator1,029over 4 years ago🔄 "AutoMapper" like, Roslyn based, code fix provider that allows to generate mapping code in design time
NetFabric.Hyperlinq.Analyzer44over 2 years agoBest practices for collection enumeration in C#
SmartAnalyzers.ExceptionAnalyzer20about 7 years agoA set of Roslyn analyzers related to exceptions usages
DotNetAnalyzers.DocumentationAnalyzersAn implementation of .NET documentation rules using Roslyn analyzers and code fixes
IDisposableAnalyzersAnalyzers and fixes for IDisposable

awesome-analyzers / Deprecated Analyzers

Code Cracker1,130over 2 years agoAn analyzer library for C# and VB that uses Roslyn to produce refactorings, code analysis, and other niceties
CSharpEssentials160over 10 years agoC# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features
RefactoringEssentials637about 5 years agoFree Visual Studio 2015 extension for C# and VB.NET refactorings, including code best practice analyzers to improve your projects
Public API analyzer18over 7 years ago(Superseded by ) - Helps tracking reusable code public API exposure, aids in proper encapsulation
VSDiagnosticsA collection of code-quality analyzers based on the new Roslyn platform. This project aims to ensure code-quality as you type it in your editor rather than having to do this as a separate build-step
RoslynClrHeapAllocationAnalyzer645over 4 years agoRoslyn 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
Mews.AnalyzersRoslyn based code analyzers used by Mews

awesome-analyzers / Free and online tools

Roslyn Quoter957almost 2 years agoRoslyn tool that for a given C# program shows syntax tree API calls to construct its syntax tree

awesome-analyzers / Blogs

Fun with Roslyn
Learn Roslyn Now

Backlinks from these awesome lists:

More related projects: