Skip to content

Repository files navigation

Roslynator

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

IMPORTANT: Analyzers will be removed from Roslynator IDE extensions in the next major release. Use Roslynator NuGet packages instead (for example, Roslynator.Analyzers).

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

About

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

Topics

Resources

Contributing

Security policy

Stars

3.5k stars

Watchers

38 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages