Prompt file imported from frasermolyneux/.github-copilot (
.github/prompts/update-editorconfig-baseline.prompt.md). Copyright stays with the author.
If this prompt is not applicable to the target repository, report the reason and stop without making changes.
- Resolve the target repository folder first. If it is not clear, ask the user to pick one.
- Load and follow
.github-copilot/.github/instructions/standards.editorconfig.instructions.mdas the source of truth. - Load and follow
.github-copilot/.github/instructions/workflows.dotnet.instructions.mdfor workflow-level formatting gate enforcement. - Ensure a repository-root
.editorconfigexists and setsroot = true. - Align analyzer category severities and style baseline for
[*.{cs,vb}]to the org standard. - Keep rule-level severity downgrades below baseline only when justified with inline comments.
- When the target repository predominantly uses underscore-style xUnit method names (for example
Method_Condition_ExpectedResult), you may apply the optional scoped test-file exception fromstandards.editorconfig.instructions.md:[**/*Tests.cs]dotnet_diagnostic.CA1707.severity = none- include inline rationale comment
- do not apply this as a global/non-test override
- Preserve allowed generated-file analyzer exclusions only for approved patterns.
- Ensure
.editorconfigchoices remain aligned with build-time warning-as-error behavior from.github-copilot/.github/instructions/standards.dotnet-project.instructions.md. - Validate against the compliance checklist in
standards.editorconfig.instructions.mdbefore finishing. - If the target repo contains
.github/workflows/{build-and-test,pr-verify,codequality,deploy-dev,deploy-prd,release-version-and-tag,release-publish-nuget}.yml, ensure each relevant workflow enforces:dotnet format <solution-or-src-path> --verify-no-changes- when workflows pin
frasermolyneux/actions/dotnet-ci,dotnet-web-ci, ordotnet-func-ciat v2 or later, treat the composite-integrated format gate as compliant - add or update an explicit workflow-level format step only when .NET commands run outside those composites, when pinned below v2, or when
skip-format-check: "true"is intentionally set
- Do not add build, test, format, or lint commands to
copilot-setup-steps.yml; that workflow is limited to prerequisites underworkflows.copilot-setup-steps.instructions.md. - Return a concise summary of changes (including workflow files when updated), whether the optional scoped CA1707 test override was applied or not applicable, exceptions retained, workflow format-gate status, and any follow-up needed.