C#

roslynator

Roslynator is a set of code analysis tools for C#, powered by Roslyn.

D

dotnet

Dernière activité 13 sept. 2026
dotnet/roslynator

3,5 k

étoiles

294

forks

213

issues ouvertes

csharpdotnetroslynvisual-studio

Ce README est souvent en anglais.

Roslynator

Roslynator is a set of code analysis tools for C#, powered by Roslyn.

Analyzers are not included in Roslynator IDE extensions. Use Roslynator NuGet packages (e.g. Roslynator.Analyzers) for diagnostics.

Tools

Documentation

Contributions

Contributions are welcome! See the developer documentation, contributing with agent skills, and open issues.

Agent skills in .claude/skills/ provide step-by-step workflows for Cursor and Claude Code (adding analyzers, refactorings, compiler fixes, and bug fixes). You can also read SKILL.md files directly as contributor guides. See CONTRIBUTING.md.

TIP: Bugfixes or small improvements can be implemented right away. Larger tasks, such as adding a new analyzer or refactoring, should be discussed first.

Donations

Special thanks to:

  • .NET on AWS Open Source Software Fund for donating $6000.00 USD ($500.00 for 12 months starting November 2024).
  • Microsoft for donating $1000.00 USD.
  • @IanKemp for donating $13.00 USD / month starting July 2021.
  • @Genbox for donating $5.00 USD / month starting October 2024.
  • Timo Nürnberg for donating $5.00 USD / month starting March 2025.

.NET Foundation

This project is supported by the .NET Foundation.

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

Command Line Tool

To install the CLI:

dotnet tool install -g roslynator.dotnet.cli

See the CLI documentation for more information.

The CLI is also integrated in MegaLinter, an open-source linter aggregator for CI (see its Roslynator page).

Testing Framework

  • Use the testing framework to unit-test analyzers, refactorings, and code fixes.
  • See the testing documentation for more information.

Client Libraries

  • The client libraries extend Roslyn and are intended for building custom analyzers and refactorings.
  • These packages do not include analyzers or refactorings.
  • See the API reference.
Package Version Extends
Roslynator.Core NuGet Microsoft.CodeAnalysis.Common
Roslynator.Workspaces.Core NuGet Microsoft.CodeAnalysis.Workspaces.Common
Roslynator.CSharp NuGet Microsoft.CodeAnalysis.CSharp
Roslynator.CSharp.Workspaces NuGet Microsoft.CodeAnalysis.CSharp.Workspaces

Projets similaires

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.

C#csharphacktoberfestroslyn
Ddotnet
20,7 k étoiles4,3 k

Code analyzer for C# and VB.NET projects

C#c-sharpcode-qualityroslyn
SSonarSource
920 étoiles244

A powerful C# Roslyn analyzer that uses static analysis to detect bugs, surface security issues, and enforce best practices—helping developers and AI write more reliable code.

C#analyzercode-qualitycsharp
Mmeziantou
1,2 k étoiles70