.NET Code Quality
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Run this .NET/C# project or solution’s Roslyn analyzers — StyleCop.Analyzers for style/formatting and the CA
rules from Microsoft.CodeAnalysis.NetAnalyzers for design/reliability/security bug detection — via a clean
dotnet build with a SARIF diagnostic log, then read the generated report to summarize every issue found, grouped
by tool. This is the .NET/C# equivalent of iru-java-code-quality (StyleCop.Analyzers ≈ Checkstyle, CA rules ≈ PMD
SpotBugs combined). It is a read-only reporting skill: it runs static analysis and reports results, it does not
fix issues unless asked to as an explicit follow-up.
Purpose
iru-dotnet-code-quality gives a fast, focused lint pass without a separate per-tool CLI invocation — both
StyleCop.Analyzers and the CA rules are Roslyn diagnostic analyzers, so both surface through the same build
pipeline and the same SARIF log. It first confirms the analyzers are actually configured on the project (rather
than reporting a misleadingly clean "zero issues" for a tool that isn’t wired up at all), runs a clean build with
an ErrorLog diagnostic file, classifies every result by its ruleId prefix (SA/SX for StyleCop, CA for
the analyzer rules, with CS/IDE diagnostics noted separately as out of scope), and can scope its summary to a
single project/file/class even though the underlying build always analyzes the whole targeted solution/project.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
No |
Scopes the reported summary to matches in a specific project/file/class: results whose |
None — omitting it summarizes every issue across the whole solution/project. |
Outputs
-
A plain-text summary in the conversation — never a written file.
-
Findings grouped by tool (StyleCop.Analyzers, then CA rules), then by file.
-
Per issue: file:line, rule ID, severity (
error/warning/note), and the message. -
A total issue count per tool at the top and an overall total; a tool with zero issues is called out explicitly as clean — or, if it isn’t actually configured on the project, as not-configured rather than a false clean pass.
-
Any
CS(compiler) orIDE(.editorconfig-driven) diagnostics found are mentioned as a separate, out-of-scope bucket rather than folded into either tool’s count. -
No source, project file,
.editorconfig, orstylecop.jsonis ever modified.
Execution flow
Dependencies
Invokes
None — iru-dotnet-code-quality is a leaf skill; it only runs dotnet commands and reads the generated SARIF report,
it does not call any other skill in this catalog.
Invoked by
-
Code — Steps 3 and 7, once per run (not per task group), via the
iru-gate-runneragent, to capture and later re-check a project-wide quality baseline for thedotnetlanguage/framework key. -
.NET Code One Task Group — Steps 1 and 3, once per task group’s bucket, via the
iru-gate-runneragent, to capture a pre-change baseline covering every type the bucket touches and later diff the post-change result against it.
Related agents
-
iru-gate-runner— both callers above always invoke this skill from inside airu-gate-runnersub-agent they spawn, not inline.
Source
SKILL.md on GitHub — the file this page was generated from.