Use a repo-root `.editorconfig` to configure free .NET analyzer and style rules.
ReSharper Command Line Tools
Use the free official JetBrains ReSharper Command Line Tools for .NET repositories. USE FOR: `jb inspectcode`; `jb cleanupcode`; stronger C# inspections, cleanup profiles, and CI-friendly JetBrains analysis. DO NOT USE FOR: replacing tests with inspection output; ad-hoc formatting-only work when the repo intentionally standardizes on another formatter. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.
Trigger On
- the repo uses or wants ReSharper Command Line Tools
- the team wants
jb inspectcodeorjb cleanupcode - the user asks for stronger C# inspections, cleanup profiles, or ReSharper-based CI gates
Workflow
- Prefer solution-level runs when possible so ReSharper can resolve references and apply full inspections.
- Build the solution before
jb cleanupcodewhen working at solution scope. - Use
jb inspectcodefirst to surface issues before editing anything broad. - Treat surfaced issues as mandatory fixes when this gate is enabled for the repo; do not just dump a report and stop.
- Use
jb cleanupcodewith an explicit cleanup profile:
- Built-in: Full Cleanup - Built-in: Reformat Code - Built-in: Reformat & Apply Syntax Style - or a checked-in custom profile
- Keep durable ReSharper settings in the team-shared solution layer and commit the solution
.DotSettingsfile when policy changes. - Re-run
jb inspectcodeafter cleanup or fixes, then run the repo's normal quality pass and tests.
Deliver
- explicit
jb inspectcodeandjb cleanupcodecommands - durable ReSharper settings in shared solution config
- a quality gate that surfaces issues which are then fixed, not ignored
Validate
- the target solution or project builds before solution-wide cleanup
jb inspectcodeoutput is reviewed and acted on- cleanup profiles and shared settings are explicit
- tests and the wider quality pass still run after ReSharper-driven fixes
Load References
Related skills
Use the open-source free `CSharpier` formatter for C# and XML.
Use Chous in .NET repositories that ship sizeable frontend codebases and want file-structure linting, naming convention enforcement, and folder-layout policy as a CLI gate.