Skip to content

refactor: EtlPipeline.From as extension method + fix InspectCode (MA0049/S2325) - #282

Merged
Chris-Wolfgang merged 1 commit into
vNextfrom
feat/etlpipeline-create-entry
Jul 20, 2026
Merged

refactor: EtlPipeline.From as extension method + fix InspectCode (MA0049/S2325)#282
Chris-Wolfgang merged 1 commit into
vNextfrom
feat/etlpipeline-create-entry

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Fixes the two InspectCode findings blocking #278 (vNext→main):

  • MA0049 (error) — test class name matched its namespace → renamed EtlPipelineTestsEtlPipelineCoreTests.
  • S2325 (warning) — instance From didn't use the EtlPipeline instance → moved both From overloads into a new EtlPipelineSourceExtensions static class as this EtlPipeline extension methods. Extension methods are static (satisfies S2325) yet instance-callable, so Create().From(...) is preserved and From is now the same shape as the format-package source factories.

Bodies unchanged; PublicAPI.Shipped.txt updated. src clean across all TFMs, 282 tests pass, Example8 (both TFMs) builds.

Merge this → vNext → #278 re-runs and InspectCode should pass → then #278 → main → re-cut v0.16.0.

…cleanup

Class-named source/sink factories in format packages open files/connections
the caller did not hand them. DisposingOwned wraps a sink to dispose those
factory-owned resources after RunAsync (success or failure), preferring
IAsyncDisposable and falling back to IDisposable, in reverse (LIFO) order —
so packages don't each reimplement the decorator.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 20, 2026 19:29

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.

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