What problem does it solve?
This Skill helps you integrate and configure code analysis tools directly into your .NET development workflow, improving code quality, maintainability, and catching potential issues early.
Core Features & Use Cases
- Configure Built-in Analyzers: Set analysis levels (
latest-all, latest-recommended, etc.) and enforce code style rules during build.
- Manage Severity: Fine-tune rule severities (error, warning, none) using
.editorconfig for specific rules or project types.
- Enable Nullable Reference Types: Globally enable nullable context for improved null safety.
- Integrate Trimming/AOT Analyzers: Ensure your application or library is compatible with trimming and Native AOT compilation.
- Add Third-Party Analyzers: Incorporate popular analyzer packages like Meziantou.Analyzer or BannedApiAnalyzers.
- Use Case: You want to ensure all new C# code in your project adheres to modern best practices and is compatible with future .NET runtimes.
Quick Start
Configure the project to use the latest Roslyn analyzers with all rules enabled and treat warnings as errors.