returned for Tags:"Analyzers"
When using dependency injection and async-await pattern it is possible to end up with an interface with a method that returns a Task. If this interface method is used in a synchronous method there is a likelihood that it will erroneously be run as a fire and forget method. In this situation this...
Code Analyzers that help find and fix common issues when writing code using the Azure Durable Functions extension.
AsyncFixer helps developers in finding and correcting common async/await *misuses* (i.e., anti-patterns). AsyncFixer has been tested with thousands of open-source C# apps and successfully handles many corner cases. It currently detects 5 common kinds of async/await misuses and fixes 3 of them via...
Provides analyzers for validating that:
* Tabs are used for indentation.
* Lengths of lines, methods, properties, and files are acceptable.
* #regions are used within long files and files that contain multiple types.
* Method blocks use a single return.
* File names match the names of...
Analyzers built using the .NET Compiler Platform (Roslyn) for Roslyn.sln.
Analyzer of ZeroFormatter, verify rule for [ZeroFormattable] classes.
Roslyn 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.
Analyzers that help avoiding struct and readonly reference performance pitfalls
Lightweight runtime-only library for contract validation.
Set of roslyn-based analyzers for RuntimeContracts library.
Disables DateTime.Now, in favor of DateTime.UtcNow
11,129 total downloads
A style checker implementing various style checks for C# code - some rules being more esoteric than others.
Utilities for Dataflow analysis based on ControlFlowGraph API in Microsoft.CodeAnalysis.
9,356 total downloads
Checks if switch statements on enums are exhaustive
Core .NET analyzers for detecting the most common coding issues