StyleCopAnalyzers

An implementation of StyleCop rules using the .NET Compiler Platform

  • 所有者: DotNetAnalyzers/StyleCopAnalyzers
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

StyleCop Analyzers for the .NET Compiler Platform

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 package StyleCop.Analyzers
to the project where you want to enforce StyleCop rules.

The severity of individual rules may be configured using rule set files
in Visual Studio 2015 or newer. Settings.StyleCop is not supported, but a stylecop.json file may be used to
customize the behavior of certain rules. See Configuration.md for more information.

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

For users upgrading from StyleCop Classic, see KnownChanges.md
for 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# version, StyleCop.Analyzers version, Visual Studio version, ------------, ----------------------------, -----------------------, 1.0 - 6.0, v1.0.2 or higher, VS2015+, 7.0 - 7.3, v1.1.0-beta or higher, VS2017+, 8.0, v1.2.0-beta or higher, VS2019, ## 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

See Contributing

Current status

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

主要指标

概览
名称与所有者DotNetAnalyzers/StyleCopAnalyzers
主编程语言C#
编程语言C# (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2014-11-17 17:29:54
推送于2024-12-04 18:23:44
最后一次提交2024-12-04 12:23:43
发布数66
最新版本名称1.2.0-beta.556 (发布于 )
第一版名称1.0.0-alpha001 (发布于 )
用户参与
星数2.7k
关注者数85
派生数513
提交数5.2k
已启用问题?
问题数2323
打开的问题数399
拉请求数1435
打开的拉请求数44
关闭的拉请求数134
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?