Skip to content

test: fix broken XML-doc cref + triage the InspectCode long-tail - #380

Merged
Chris-Wolfgang merged 1 commit into
vNextfrom
fix/inspectcode-longtail-cref
Aug 14, 2026
Merged

Chris-Wolfgang merged 1 commit into
vNextfrom
fix/inspectcode-longtail-cref

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Stacked PR 7 (final) on the Code Scanning cleanup — the misc long-tail. Base: fix/inspectcode-correctness-examples (PR #377).

Fix — 1 real issue

InvalidXmlDocComment in EtlPipelineTests/TestDoubles.cs: EtlPipeline.From{T,TProgress}(...) didn't resolve because From is an extension method on EtlPipelineSourceExtensions, not a member of EtlPipeline. Repointed the cref at the extensions class (with the this param type).

The rest of the long-tail — dismissed (false-positive / won't-fix)

After a fresh jb inspectcode on the fully-fixed branch, the remaining dashboard findings were triaged; 14 are code-correct / warning-wrong or platform-constrained and dismissed in code scanning:

  • S1215 ×2 — GC.Collect() is required in an allocation-measurement test before GC.GetTotalAllocatedBytes.
  • S1994 ×3 — intentional infinite for(;;) / while(true) (infinite generators, retry-until-exhausted).
  • S6966 ×2 — cts.Cancel() required; CancelAsync() is net8+ only, base targets net462+.
  • MA0158 — System.Threading.Lock is net9+; multi-TFM type keeps object lock.
  • S5034 — ValueTask blocked in CsCheck's synchronous fuzz callback (can't be async).
  • S3267 — loop kept to avoid LINQ allocation on the middleware-chain path.
  • RCS1194 / S4487 / S6608 — test-only boilerplate / scaffolding / immaterial micro-opt.
  • InvalidXmlDocComment (benchmark) — <see cref="Pipeline"/> resolves in code (ReSharper FP).

Not in this PR (already fixed upstream in the stack, clear at release): StaticMemberInGenericType ×3 + S2699 ×2 (#376).

Verification

Test project builds green (net8.0); doc-comment-only change.

🤖 Generated with Claude Code

InvalidXmlDocComment: `EtlPipeline.From{T,TProgress}(...)` did not resolve —
`From` is an extension method declared on `EtlPipelineSourceExtensions`, not a
member of `EtlPipeline`. Point the cref at the extensions class with the `this`
parameter type included.

(The other long-tail InspectCode findings are false-positive / won't-fix in a
multi-TFM or test/benchmark context and are dismissed in code scanning: the
benchmark `<see cref="Pipeline"/>` resolves in code, S1215 GC.Collect in an
allocation test, S1994 intentional infinite loops, S6966 Cancel() required on
net462, MA0158 Lock is net9+, S5034 sync fuzz callback, etc.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 13, 2026 22:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Base automatically changed from fix/inspectcode-correctness-examples to vNext August 14, 2026 00:29
@Chris-Wolfgang
Chris-Wolfgang merged commit 023759e into vNext Aug 14, 2026
2 checks passed
@Chris-Wolfgang
Chris-Wolfgang deleted the fix/inspectcode-longtail-cref branch August 14, 2026 00:32
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.

2 participants