{"id":13430143,"url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers","last_synced_at":"2025-03-16T05:30:37.907Z","repository":{"id":23406045,"uuid":"26768275","full_name":"DotNetAnalyzers/StyleCopAnalyzers","owner":"DotNetAnalyzers","description":"An implementation of StyleCop rules using the .NET Compiler Platform","archived":false,"fork":false,"pushed_at":"2024-08-22T20:41:52.000Z","size":16540,"stargazers_count":2654,"open_issues_count":411,"forks_count":507,"subscribers_count":85,"default_branch":"master","last_synced_at":"2024-10-29T15:07:11.043Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DotNetAnalyzers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-17T17:29:54.000Z","updated_at":"2024-10-28T11:50:33.000Z","dependencies_parsed_at":"2023-12-18T18:58:08.243Z","dependency_job_id":"ce704a38-0c88-4770-9e35-3dc99007a043","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers","commit_stats":{"total_commits":3455,"total_committers":115,"mean_commits":"30.043478260869566","dds":0.498986975397974,"last_synced_commit":"5d98796d208c5e0c5ca61d1de2513ff37a66625e"},"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNetAnalyzers%2FStyleCopAnalyzers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNetAnalyzers%2FStyleCopAnalyzers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNetAnalyzers%2FStyleCopAnalyzers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNetAnalyzers%2FStyleCopAnalyzers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DotNetAnalyzers","download_url":"https://codeload.github.com/DotNetAnalyzers/StyleCopAnalyzers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:00:50.402Z","updated_at":"2025-03-16T05:30:37.886Z","avatar_url":"https://github.com/DotNetAnalyzers.png","language":"C#","readme":"# StyleCop Analyzers for the .NET Compiler Platform\n\n[![NuGet](https://img.shields.io/nuget/v/StyleCop.Analyzers.svg)](https://www.nuget.org/packages/StyleCop.Analyzers)[![NuGet Beta](https://img.shields.io/nuget/vpre/StyleCop.Analyzers.svg)](https://www.nuget.org/packages/StyleCop.Analyzers)\n\n[![Join the chat at https://gitter.im/DotNetAnalyzers/StyleCopAnalyzers](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/DotNetAnalyzers/StyleCopAnalyzers?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n[![Build status](https://ci.appveyor.com/api/projects/status/8jw2lq431kgg44jl/branch/master?svg=true)](https://ci.appveyor.com/project/sharwell/stylecopanalyzers/branch/master)\n\n[![codecov.io](https://codecov.io/github/DotNetAnalyzers/StyleCopAnalyzers/coverage.svg?branch=master)](https://codecov.io/github/DotNetAnalyzers/StyleCopAnalyzers?branch=master)\n\nThis 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.\n\n## Using StyleCop.Analyzers\n\nThe preferable way to use the analyzers is to add the nuget package [StyleCop.Analyzers](http://www.nuget.org/packages/StyleCop.Analyzers/)\nto the project where you want to enforce StyleCop rules.\n\nThe severity of individual rules may be configured using [rule set files](https://docs.microsoft.com/en-us/visualstudio/code-quality/using-rule-sets-to-group-code-analysis-rules)\nin Visual Studio 2015 or newer. **Settings.StyleCop** is not supported, but a **stylecop.json** file may be used to\ncustomize the behavior of certain rules. See [Configuration.md](documentation/Configuration.md) for more information.\n\nFor documentation and reasoning on the rules themselves, see the [Documentation](DOCUMENTATION.md).\n\nFor users upgrading from StyleCop Classic, see [KnownChanges.md](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/tree/master/documentation/KnownChanges.md)\nfor information about known differences which you may notice when switching to StyleCop Analyzers.\n\n### C# language versions\nNot 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.\n\n| C# version | StyleCop.Analyzers version | Visual Studio version |\n|------------|----------------------------|-----------------------|\n| 1.0 - 6.0  | v1.0.2 or higher           | VS2015+               |\n| 7.0 - 7.3  | v1.1.0-beta or higher      | VS2017+               |\n|    8.0     | v1.2.0-beta or higher      | VS2019                |\n\n## Installation\n\nStyleCopAnalyzers can be installed using the NuGet command line or the NuGet Package Manager in Visual Studio 2015.\n\n**Install using the command line:**\n```bash\nInstall-Package StyleCop.Analyzers\n```\n\n**Install using the package manager:**\n![Install via nuget](https://cloud.githubusercontent.com/assets/1408396/8233513/491f301a-159c-11e5-8b7a-1e16a0695da6.png)\n\n## Team Considerations\n\nIf 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.\n\n## Contributing\n\nSee [Contributing](CONTRIBUTING.md)\n\n## Current status\n\nAn up-to-date list of which StyleCop rules are implemented and which have code fixes can be found [here](https://dotnetanalyzers.github.io/StyleCopAnalyzers/).\n","funding_links":[],"categories":["Frameworks, Libraries and Tools","C#","C# #","C\\#","框架, 库和工具","Open Source Analyzers, Code Fixes, and Refactorings","🗒️ Cheatsheets","Code Analysis and Metrics","Popular Analyzers"],"sub_categories":["Code Analysis and Metrics","代码分析和指标","📦 Libraries","Analyzer collections"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDotNetAnalyzers%2FStyleCopAnalyzers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDotNetAnalyzers%2FStyleCopAnalyzers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDotNetAnalyzers%2FStyleCopAnalyzers/lists"}