roslyn-analyzer-review

Audit and fix Roslyn analyzer rule violations across .NET 10 projects.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/nhahoang1909/MarketNest --skill roslyn-analyzer-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: roslyn-analyzer-review
Source: https://github.com/nhahoang1909/MarketNest/tree/main/.claude/skills/roslyn-analyzer-review
Command: npx skills add https://github.com/nhahoang1909/MarketNest --skill roslyn-analyzer-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Review and validate MarketNest's 18 custom Roslyn analyzer rules (MN001–MN018) to ensure consistent code quality, proper rule enforcement, and reliable CI behavior across the codebase.

Core Features & Use Cases

  • Validate all 18 analyzer rules are implemented correctly and trigger as expected.
  • Audit projects for analyzer violations, debug rule firings, and assess rule coverage with unit tests.
  • Support adding new rules, writing analyzer tests, and documenting suppressions with proper guidance.

Quick Start

Paste a failing MN0xx error or snippet and run the analyzer tests to verify a fix.

Frequently Asked Questions about roslyn-analyzer-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a Roslyn analyzer rule that fires unexpectedly during a .NET build?

To debug a Roslyn analyzer rule, you can audit the specific violation and run the analyzer unit tests under tests/MarketNest.Analyzers.Tests using xUnit and Microsoft.CodeAnalysis.CSharp.Testing to verify the expected behavior.

How do I write unit tests for a custom Roslyn analyzer in C#?

You write unit tests for a custom Roslyn analyzer by creating test cases using Microsoft.CodeAnalysis.CSharp.Testing and xUnit, placing them under tests/MarketNest.Analyzers.Tests to validate that rules trigger correctly.

What is the best way to suppress a Roslyn analyzer violation in my codebase?

The best way to suppress a Roslyn analyzer violation is to document the suppression with proper guidance, ensuring the specific MN0xx rule is bypassed correctly while maintaining consistent code quality enforcement.

Can I add new Roslyn analyzer rules to an existing .NET 10 project?

Yes, you can add new Roslyn analyzer rules to a .NET 10 project by implementing the rule logic and writing corresponding analyzer unit tests to validate the rule triggers as expected during the build phase.

Why are my Roslyn analyzer unit tests failing when validating custom diagnostics?

Roslyn analyzer unit tests fail when the custom diagnostics do not trigger as expected; you must audit the analyzer violation, debug the rule firing, and verify compatibility with the Roslyn SDK.

Does the MarketNest analyzer review support xUnit and .NET 10 compatibility?

Yes, the MarketNest analyzer review fully supports xUnit and .NET 10 compatibility, ensuring the 18 custom Roslyn analyzer rules trigger reliably during build and test phases.