Skip to content

Add ILINK002 duplicate-handler detection - #17

Merged
manusoft merged 1 commit into
masterfrom
feature/analyzer-update
Sep 25, 2026
Merged

manusoft merged 1 commit into
masterfrom
feature/analyzer-update

Conversation

@manusoft

Copy link
Copy Markdown
Owner

Refactor MissingHandlerAnalyzer to detect and report duplicate request handlers (ILINK002) while retaining ILINK001 for missing handlers. Split diagnostics into MissingHandlerRule and DuplicateHandlerRule (MissingHandlerId / DuplicateHandlerId), build handlersByRequest to map request -> handlers, and report ILINK002 on each handler when more than one exists. Clean up symbol/type checks and collection usage; SupportedDiagnostics now includes both rules.

Bump Interlink.Analyzers to 1.6.0. Update Interlink.Sample to consume the analyzer as a ProjectReference (OutputItemType="Analyzer", ReferenceOutputAssembly="false"), remove NuGet analyzer ref, add Microsoft.AspNetCore.OpenApi, and keep EF Core packages.

Docs and samples: add ILINK002 to AnalyzerReleases.Shipped.md and README with example code, clarify ILINK001 example, and tweak release notes formatting. Move GetSomthing into its own sample file and add two handlers to intentionally trigger the duplicate-handler diagnostic. Minor XML comment and formatting fixes.

Refactor MissingHandlerAnalyzer to detect and report duplicate request handlers (ILINK002) while retaining ILINK001 for missing handlers. Split diagnostics into MissingHandlerRule and DuplicateHandlerRule (MissingHandlerId / DuplicateHandlerId), build handlersByRequest to map request -> handlers, and report ILINK002 on each handler when more than one exists. Clean up symbol/type checks and collection usage; SupportedDiagnostics now includes both rules.

Bump Interlink.Analyzers to 1.6.0. Update Interlink.Sample to consume the analyzer as a ProjectReference (OutputItemType="Analyzer", ReferenceOutputAssembly="false"), remove NuGet analyzer ref, add Microsoft.AspNetCore.OpenApi, and keep EF Core packages.

Docs and samples: add ILINK002 to AnalyzerReleases.Shipped.md and README with example code, clarify ILINK001 example, and tweak release notes formatting. Move GetSomthing into its own sample file and add two handlers to intentionally trigger the duplicate-handler diagnostic. Minor XML comment and formatting fixes.
@manusoft manusoft added this to the v1.6.0 milestone Sep 25, 2026
@manusoft manusoft self-assigned this Sep 25, 2026
@manusoft manusoft added the enhancement New feature or request label Sep 25, 2026
@manusoft
manusoft merged commit 26d223e into master Sep 25, 2026
6 checks passed
@manusoft
manusoft deleted the feature/analyzer-update branch September 25, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant