Skip to main content
Any Framework

An implementation of StyleCop's rules using Roslyn analyzers and code fixes

Published
Oct 14, 2026
4d ago
Total Downloads
276.6M
276,592,484

Install

dotnet add package StyleCop.Analyzers --version 1.3.79-beta

No framework information available.

README

StyleCop.Analyzers

An implementation of the StyleCop rules using Roslyn analyzers and code fixes. The analyzers report style and consistency issues in C# code while you build or edit, and many of them include code fixes.

Getting started

Add the package to each project you want to check:

dotnet add package StyleCop.Analyzers

The package is a development dependency, so it is not added as a dependency of your own package.

Configuration

  • Use an .editorconfig file or a rule set to change the severity of individual rules, or to turn rules off.
  • Use a stylecop.json file to customize the behavior of certain rules, such as the file header or the ordering of using directives. See Configuration.md.

Documentation

Feedback

Report bugs and ask questions in the GitHub repository.

Changes from Previous Version

No structural changes between v1.3.18-beta and v1.3.79-beta.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.