moq-analyzers-diagnostics-and-tooling

Diagnose Moq.analyzers behavior and performance with benchmarks and build diagnostics.

24|4|Updated Nov 25, 2017
One-click install
npx skills add https://github.com/rjmurillo/moq.analyzers --skill moq-analyzers-diagnostics-and-tooling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moq-analyzers-diagnostics-and-tooling
Source: https://github.com/rjmurillo/moq.analyzers/tree/main/.github/skills/moq-analyzers-diagnostics-and-tooling
Command: npx skills add https://github.com/rjmurillo/moq.analyzers --skill moq-analyzers-diagnostics-and-tooling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Moq, BenchmarkDotNet, MSBuild, Cobertura, SARIF, snitch, dotnet-inspect, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides the tools to measure and diagnose the behavior and performance of Moq.analyzers, ensuring accurate analysis and performance optimization.

Core Features & Use Cases

  • Diagnostics: Run analyzers on code snippets to observe behavior and identify issues.
  • Benchmarks: Measure performance and detect regressions with Benchmarks and PerfDiff.
  • Binlogs: Analyze MSBuild's flight recorder to diagnose build issues.
  • Coverage: Generate and read Cobertura reports for code coverage analysis.
  • SARIF: Produce machine-readable diagnostics for advanced analysis.
  • snitch: Detect unused NuGet dependencies to optimize project references.
  • dotnet-inspect: Verify Moq's real API surface for accurate analyzer logic.
  • Use Case: When developing a new Moq.analyzers rule, use this Skill to test and validate the analyzer's behavior against various Moq versions and scenarios.

Quick Start

Run the analyzer on a snippet of code with the command: .github/skills/moq-analyzers-diagnostics-and-tooling/scripts/run-analyzer-on-snippet.sh <snippet.cs> [moq-version].

Frequently Asked Questions about moq-analyzers-diagnostics-and-tooling

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

FAQPage Schema
How do I run diagnostics on a code snippet using Moq.analyzers to observe behavior?

You can run Moq.analyzers diagnostics on a code snippet by executing the run-analyzer-on-snippet script with your target snippet file and an optional Moq version to identify issues and observe analyzer behavior.

What's the best way to measure performance and detect regressions in Moq.analyzers?

To measure performance and detect regressions in Moq.analyzers, use BenchmarkDotNet and PerfDiff to benchmark analyzer execution times and identify performance degradation across different code scenarios.

Can I generate machine-readable diagnostics for advanced analysis from Moq.analyzers?

Yes, you can produce SARIF machine-readable diagnostics from Moq.analyzers to enable advanced automated analysis and integration with standard CI security and code-quality reporting pipelines.

How do I diagnose build issues related to Moq.analyzers using MSBuild binlogs?

You can diagnose Moq.analyzers build issues by analyzing MSBuild binlogs, which act as a flight recorder to capture detailed build execution data and pinpoint compilation or analyzer loading failures.

Do I need snitch to detect unused NuGet dependencies when developing Moq.analyzers?

Yes, you need snitch to detect unused NuGet dependencies in your Moq.analyzers project, allowing you to optimize project references and ensure only necessary packages are included in the build.

How do I verify the real API surface for accurate Moq.analyzers logic implementation?

You can use dotnet-inspect to verify Moq's real API surface, ensuring your analyzer logic accurately targets the correct API structures and behaves predictably across different Moq library versions.