Skip to content

Update the diagnotic ids of the AspireExportAnalyzer.#15102

Merged
eerhardt merged 2 commits intomicrosoft:release/13.2from
eerhardt:UpdateDiagnosticIDs
Mar 10, 2026
Merged

Update the diagnotic ids of the AspireExportAnalyzer.#15102
eerhardt merged 2 commits intomicrosoft:release/13.2from
eerhardt:UpdateDiagnosticIDs

Conversation

@eerhardt
Copy link
Copy Markdown
Member

The current IDs conflict with existing diagnostic IDs that we've already shipped.

See https://aspire.dev/diagnostics/aspire007 and https://aspire.dev/diagnostics/aspire008

The current IDs conflict with existing diagnostic IDs that we've already shipped.
@eerhardt eerhardt requested a review from sebastienros March 10, 2026 15:08
@eerhardt eerhardt requested a review from mitchdenny as a code owner March 10, 2026 15:08
Copilot AI review requested due to automatic review settings March 10, 2026 15:08
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 10, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15102

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15102"

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames AspireExportAnalyzer diagnostic IDs to avoid collisions with already-shipped Aspire diagnostics (notably ASPIRE007/ASPIRE008), and updates analyzer tests/release tracking to match the new IDs.

Changes:

  • Updated AspireExportAnalyzer diagnostic IDs from ASPIRE00x to ASPIREEXPORT00x.
  • Updated analyzer unit tests and release tracking to use the new diagnostic IDs.
  • Updated an MSBuild integration test expectation (currently incorrect; see comment).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Aspire.Hosting.Tests/MSBuildTests.cs Updates expected build error ID (but currently mismatches the MSBuild target diagnostic).
tests/Aspire.Hosting.Analyzers.Tests/AspireExportAnalyzerTests.cs Renames test method names to reflect new analyzer diagnostic IDs.
src/Aspire.Hosting.Analyzers/AspireExportAnalyzer.cs Updates inline comments referencing diagnostic IDs.
src/Aspire.Hosting.Analyzers/AspireExportAnalyzer.Diagnostics.cs Renames analyzer DiagnosticDescriptor IDs to ASPIREEXPORT###.
src/Aspire.Hosting.Analyzers/AnalyzerReleases.Unshipped.md Updates unshipped analyzer rule IDs and documentation links.

@eerhardt eerhardt enabled auto-merge (squash) March 10, 2026 16:03
@eerhardt eerhardt merged commit 6008f52 into microsoft:release/13.2 Mar 10, 2026
736 of 742 checks passed
@eerhardt eerhardt deleted the UpdateDiagnosticIDs branch March 10, 2026 22:22
@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants