返回 Skill 列表
extension
分类: 开发与工程无需 API Key

dotnet-format-analyzers

定义标准的dotnet格式和分析器验证命令,并提供生成格式/分析器报告的脚本。在不重新格式化所有内容的情况下检查格式或Roslyn分析器时使用。

person作者: jakexiaohubgithub

dotnet-format-analyzers

Provide canonical format/analyzer commands and a report-generating script that stays in verify mode.

Canonical commands

Format verification:

dotnet format src/Incursa.slnx --verify-no-changes

Analyzer verification:

dotnet format analyzers src/Incursa.slnx --verify-no-changes

Report script

Bash:

bash .codex/skills/dotnet-format-analyzers/scripts/run-format-analyzers.sh

PowerShell:

pwsh -File .codex/skills/dotnet-format-analyzers/scripts/run-format-analyzers.ps1

Outputs:

  • artifacts/codex/format-report.txt

Targeted usage (preferred)

Never reformat the world unless explicitly asked. Prefer targeted scopes:

  • Solution or project: pass a specific .slnx or .csproj path
  • Files: pass one or more --include paths

Examples:

bash .codex/skills/dotnet-format-analyzers/scripts/run-format-analyzers.sh src/app/Incursa.Web/Incursa.Web.csproj
bash .codex/skills/dotnet-format-analyzers/scripts/run-format-analyzers.sh src/Incursa.slnx --include src/app/Incursa.Web/Pages/Error.cshtml.cs

Notes

  • Scripts run in verify mode only.
  • The report captures both formatter and analyzer output for CI uploads or local triage.