Skip to content

refactor(Pipeline): tidy the builder, assembler, resolver and specification - #2430

Merged
DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:refactor/tidy-pipeline-core
Nov 23, 2026
Merged

DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:refactor/tidy-pipeline-core

Conversation

@DerManoMann

Copy link
Copy Markdown
Collaborator

Overview

The pipeline core repeats itself in a few places: classic and hybrid builds set up their generator with the same steps, ComponentIndex has five copies of one lookup, and Builder\Result filters warnings and errors with the same loop. OptionalPropertyAttributeTranslator checks for a schema and an encoding on reflectors it then skips. Elsewhere there are nested guards, short variable names and docblocks without a summary line.

No output changes: every spec example and fixture builds to the same document and log in spec and hybrid.

Changes

  • Builder::createGenerator() replaces the duplicated generator setup
  • ComponentIndex::findIn() backs the five typed find*() methods
  • Builder\Result::messages() backs warnings() and errors()
  • OptionalPropertyAttributeTranslator checks only where it adds a property
  • Guards flattened in Walker, Assembler, PluginDiscovery and Merge\Operations
  • Variables renamed in Builder, Resolver and Specification; docblocks given a summary line

…cation

Share the generator setup of classic and hybrid builds in
`Builder::createGenerator()`, the five typed lookups of `ComponentIndex` in
`findIn()`, and the warning and error filters of `Builder\Result` in
`messages()`. Check for a schema and an encoding in
`OptionalPropertyAttributeTranslator` only where a property is added.

Flatten guards in `Walker`, `Assembler`, `PluginDiscovery` and
`Merge\Operations`, rename short variables in `Builder`, `Resolver` and
`Specification`, and give docblocks a one-sentence summary.
@DerManoMann
DerManoMann merged commit 2ec0c08 into zircote:master Nov 23, 2026
20 checks passed
@DerManoMann
DerManoMann deleted the refactor/tidy-pipeline-core branch November 23, 2026 01:20
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.

1 participant