{"enrichment":{"faq":[{"a":"Roslynator installs via NuGet package manager. Add the `Roslynator.Analyzers` package to your project file or use `dotnet add package Roslynator.Analyzers`. Once installed, Roslynator's static analysis rules activate automatically during compilation. You can then configure rule severity levels in your project's `.editorconfig` file to customize which diagnostics are reported and at what level (error, warning, or silent).","q":"How do I set up Roslynator analyzers in my .NET project?"},{"a":"Roslynator's command-line interface provides `analyze` and `fix` commands for batch operations on C# code. Install the global tool with `dotnet tool install -g Roslynator.CommandLine`, then run `roslynator analyze` to scan your project for issues or `roslynator fix` to automatically apply corrections. The CLI is optional\u2014the NuGet analyzer package works standalone\u2014but the CLI excels for CI/CD integration and scripted workflows.","q":"What is the Roslynator CLI and how do I use it?"},{"a":"Roslynator includes analyzers that detect unused symbols, variables, and imports. Run `roslynator analyze` via the CLI to generate a report of unused code, or let the NuGet package highlight these issues in your IDE during development. Configure the severity of unused-code diagnostics in `.editorconfig` to treat them as warnings or errors, enforcing cleanup across your team.","q":"How can I find and eliminate unused code in C# with Roslynator?"},{"a":"Roslynator respects `.editorconfig` files for rule configuration. Create or edit `.editorconfig` in your project root and set rule IDs (e.g., `dotnet_diagnostic.RCS1001.severity = warning`) to control how each analyzer behaves. You can also disable specific rules entirely or set them to silent. This approach integrates seamlessly with other linters and respects your existing analyzer setup.","q":"How do I configure Roslynator rules and severity levels?"},{"a":"Yes. Roslynator's CLI tool is designed for CI/CD workflows. Install it as a global tool in your pipeline, then run `roslynator analyze` to fail the build if issues are found, or `roslynator fix` to auto-correct and commit changes. This enforces code quality checks across all pull requests and commits, ensuring consistent standards before code reaches production.","q":"Can I integrate Roslynator into my CI/CD pipeline?"},{"a":"Roslynator is built on the Roslyn compiler platform and coexists with other analyzers like StyleCop. Configure rule IDs in `.editorconfig` to disable overlapping rules from competing packages, preventing duplicate warnings. Roslynator's modular design lets you cherry-pick which diagnostics matter to your project, consolidating analyzer packs without conflicts.","q":"How does Roslynator avoid conflicts with other C# analyzers?"}],"shadow_tags":["code-quality-automation","static-analysis-tool","dotnet-linting","roslyn-based-analyzer","csharp-refactoring","build-time-enforcement","unused-code-detection","analyzer-package-management","ci-integration-ready"],"summary_rewrite":"Roslynator equips .NET projects with open-source static analysis and code-cleanup capabilities through NuGet analyzer packages and an optional command-line tool. Configure rule severity in `.editorconfig`, run analysis and fix workflows, or detect unused code\u2014all while respecting your repo's existing analyzer setup."},"files":[{"bytes":5240,"path":"catalog/Tools/Roslynator/skills/roslynator/SKILL.md","sha256":"9efe3fcc0d0d7747c1f43930a23ea917366665b094175152f821c27d0f176476","url":"https://skillfed.io/files/managedcode/dotnet-skills/roslynator/0416be1e/SKILL.md"}],"id":"managedcode/dotnet-skills/roslynator","links":{"html":"https://skillfed.io/managedcode/dotnet-skills/roslynator","md":"https://skillfed.io/managedcode/dotnet-skills/roslynator.md","repo":"https://github.com/managedcode/dotnet-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":35,"language":"C#","last_updated":"2026-07-25","license":"MIT","name":"roslynator","publisher":"managedcode","stars":463},"relations":{"similar":[{"id":"managedcode/dotnet-skills/meziantou-analyzer"},{"id":"managedcode/dotnet-skills/analyzer-config"},{"id":"managedcode/dotnet-skills/stylecop-analyzers"},{"id":"managedcode/dotnet-skills/code-analysis"},{"id":"managedcode/dotnet-skills/complexity"},{"id":"managedcode/dotnet-skills/quality-ci"},{"id":"managedcode/dotnet-skills/format"},{"id":"managedcode/dotnet-skills/modern-csharp"},{"id":"managedcode/dotnet-skills/resharper-clt"},{"id":"managedcode/dotnet-skills/csharpier"}]},"slug":{"owner":"managedcode","repo":"dotnet-skills","skill":"roslynator"},"version":"0416be1e"}
