Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An implementation of StyleCop rules using the .NET Compiler Platform

License

NotificationsYou must be signed in to change notification settings

DotNetAnalyzers/StyleCopAnalyzers

Repository files navigation

NuGetNuGet Beta

Join the chat at https://gitter.im/DotNetAnalyzers/StyleCopAnalyzers

Build status

codecov.io

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.

Using StyleCop.Analyzers

The preferable way to use the analyzers is to add the nuget packageStyleCop.Analyzersto the project where you want to enforce StyleCop rules.

The severity of individual rules may be configured usingrule set filesin Visual Studio 2015 or newer.Settings.StyleCop is not supported, but astylecop.json file may be used tocustomize the behavior of certain rules. SeeConfiguration.md for more information.

For documentation and reasoning on the rules themselves, see theDocumentation.

For users upgrading from StyleCop Classic, seeKnownChanges.mdfor information about known differences which you may notice when switching to StyleCop Analyzers.

C# language versions

Not all versions of StyleCop.Analyzers support all features of each C# language version. The table below shows the minimum version of StyleCop.Analyzers required for proper support of a C# language version.

C# versionStyleCop.Analyzers versionVisual Studio version
1.0 - 6.0v1.0.2 or higherVS2015+
7.0 - 7.3v1.1.0-beta or higherVS2017+
8.0v1.2.0-beta or higherVS2019

Installation

StyleCopAnalyzers can be installed using the NuGet command line or the NuGet Package Manager in Visual Studio 2015.

Install using the command line:

Install-Package StyleCop.Analyzers

Install using the package manager:Install via nuget

Team Considerations

If you use older versions of Visual Studio in addition to Visual Studio 2015 or Visual Studio 2017, you may still install these analyzers. They will be automatically disabled when you open the project back up in Visual Studio 2013 or earlier.

Contributing

SeeContributing

Current status

An up-to-date list of which StyleCop rules are implemented and which have code fixes can be foundhere.

About

An implementation of StyleCop rules using the .NET Compiler Platform

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp