Codex StyleCop Analyzer Configuration for C# Projects
Inspect .NET StyleCop settings, rule severities, and options specific to the analyzer.
中文Install in Codex
Use the .NET SDK, a project with StyleCop.Analyzers, and its `.editorconfig` plus optional `stylecop.json`.
- Copy the pinned `.codex/skills/dotnet-stylecop-analyzers/` directory into `.agents/skills/dotnet-stylecop-analyzers/` in the project.
- Identify the `.csproj`, read the nearest `AGENTS.md`, and confirm the package reference and existing rules.
Example task
In a StyleCop-enabled `Demo.csproj`, inspect `SA1200` for placement of `using` directives. Build with `dotnet build Demo.csproj` and compare examples on each side of the namespace.What to check
Build diagnostics match the configured placement rule and severity, with references to the relevant source and settings.
Original SKILL.md on GitHub · Updated
Frequently asked question
Where should I configure a rule's severity?
Set diagnostic severity in `.editorconfig` and keep StyleCop-specific behavior options in `stylecop.json`.