dotnet/roslynator

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

C#

3,482

4,469 commits

updated Sep 13, 2026

See the code

README

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.
csharp
dotnet
roslyn
visual-studio

Significant stargazers

(top 24 of 32)

YFdyh000

340 followers · starred Jul 2022

Meir Blachman

67 followers · starred Dec 2016

Rikki Gibson

129 followers · starred Oct 2019

Jozef Izso

83 followers · starred Feb 2017

dotnet/roslynator

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

C#

3,482

4,469 commits

updated Sep 13, 2026

See the code

README

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.
csharp
dotnet
roslyn
visual-studio

Significant stargazers

(top 24 of 32)

YFdyh000

340 followers · starred Jul 2022

Meir Blachman

67 followers · starred Dec 2016

Rikki Gibson

129 followers · starred Oct 2019

Jozef Izso

83 followers · starred Feb 2017

Languages

C#

99.0%