.N .NET Landscape

StyleCop Analyzers

CLI & Developer Tooling
github.com/DotNetAnalyzers/StyleCopAnalyzers

An implementation of StyleCop rules using the .NET Compiler Platform

csharplinting
GitHub stars
2,860
Forks
510
Open issues
50
NuGet downloads
283,974,862
latest 1.1.118
License
MIT
Language
C#
Last push
2 days ago
21 Oct 2026
Created
17 Nov 2014

StyleCop Analyzers for the .NET Compiler Platform

StyleCop.Analyzers icon

NuGet NuGet Beta Build status codecov.io Join the chat at https://gitter.im/DotNetAnalyzers/StyleCopAnalyzers

This repository contains an implementation of the StyleCop rules using the .NET Compiler Platform. Where possible, code fixes are also provided to simplify the process of correcting violations.

Installation

See our getting started guide.

Using StyleCop.Analyzers

The severity of individual rules may be customized in the standard way for roslyn analyzers. Many configuration options allow you to further tailor StyleCop.Analyzers to your team's tastes.

C# language versions

We generally recommend using the latest version of the StyleCop.Analyzers, especially if you're using recent C# language versions.

C# version StyleCop.Analyzers version
1.0 - 6.0 v1.0.2
7.0 - 7.3 v1.1.0
8.0 v1.2.0-beta
9.0 - 15.0 v1.3.0-beta

Contributing

See our contribution guide.