resharper-cli

Run ReSharper CLI inspectcode and cleanupcode for .NET solutions.

Updated May 11, 2026
One-click install
npx skills add https://github.com/CZ-X-Ya/oh-my-csharp-skills --skill resharper-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resharper-cli
Source: https://github.com/CZ-X-Ya/oh-my-csharp-skills/tree/main/resharper-cli
Command: npx skills add https://github.com/CZ-X-Ya/oh-my-csharp-skills --skill resharper-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you automatically inspect code quality and apply formatting/style fixes for a .NET solution using ReSharper’s command-line tools, without needing to open an IDE.

Core Features & Use Cases

  • Code inspection with reports: Use jb inspectcode to generate analysis results, including SARIF output for automated security/code-quality workflows.
  • Automated cleanup and style fixes: Use jb cleanupcode to reformat code and apply style rules directly to solution files.
  • Targeted, configurable analysis: Filter by project/file patterns, set minimum severity, and optionally point to a shared .DotSettings configuration for consistent rules across a team.
  • Use Case: Add quality gates to CI by generating a SARIF report from your solution, uploading it to tools that understand SARIF, and failing the build when errors are found.

Quick Start

Run jb inspectcode MySolution.sln -o inspection.sarif --format Sarif -e WARNING to produce a SARIF code inspection report for CI ingestion.

Frequently Asked Questions about resharper-cli

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

FAQPage Schema
How do I generate a SARIF code inspection report for a .NET solution in CI?

Generate a SARIF code inspection report by running `jb inspectcode` on your .NET solution with the `--format Sarif` option and a specified output file path for CI ingestion.

Can I apply automated code formatting and style fixes to .NET files without opening an IDE?

Yes, you can apply automated code formatting and style fixes without an IDE by running the `jb cleanupcode` command to reformat your .NET solution files based on configured style profiles.

How do I scope static code analysis to specific projects or files using ReSharper CLI?

Scope static code analysis by applying include and exclude file masks or project patterns to the `jb inspectcode` command, targeting only specific parts of your .NET solution for inspection.

Does ReSharper CLI support shared team style configurations for code cleanup?

Yes, ReSharper CLI supports shared team style configurations by allowing you to optionally point the `jb cleanupcode` or `jb inspectcode` commands to a shared `.DotSettings` file for consistent rules.

How can I fail a CI pipeline build based on .NET code inspection severity levels?

Fail a CI pipeline build by running `jb inspectcode` with a minimum severity threshold to catch code quality issues, generating a SARIF report to trigger pipeline failure when errors are detected.

What is the best way to run .NET static analysis without rebuilding the project in CI?

Run .NET static analysis without rebuilding by using the CI-friendly `--no-build` execution option with the `jb inspectcode` command, skipping compilation to accelerate the inspection pipeline.