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.
See our getting started guide.
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.
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 |
See our contribution guide.