Skip to content

refactor(app): collect findings/layouts then render#34

Merged
peczenyj merged 1 commit into
develfrom
feature/collect-then-render
May 26, 2026
Merged

refactor(app): collect findings/layouts then render#34
peczenyj merged 1 commit into
develfrom
feature/collect-then-render

Conversation

@peczenyj
Copy link
Copy Markdown
Owner

Turns app.Run's per-target render loop into collect-then-render: gather all findings (or layouts) across targets into one slice, then render once after the loop.

Why: the upcoming -summary, -sort, and -threshold features all need the full set of findings/layouts in hand before rendering (global sorting, aggregate totals, filtering). This refactor is the shared foundation; it lands first, on its own, so it can be reviewed purely as a no-op.

No behavior change:

  • Targets are already PkgPath-sorted and align sorts findings by file/offset, so concatenating in target order preserves the exact previous output ordering.
  • Full test suite (79 tests) and all golden fixtures pass unchanged (no -update).
  • task ci green: tidy:check, lint, go-consistent, build, test, smoke.

Closes #28

🤖 Generated with Claude Code

Turn Run's per-target render loop into collect-then-render: gather all
findings (or layouts) across targets into one slice, then render once.
Targets are already PkgPath-sorted and align sorts findings by file/offset,
so concatenating in target order preserves the exact previous output.

No behavior change — full test suite and golden fixtures pass unchanged.
This is the foundation for the upcoming -summary/-sort/-threshold features.

Closes #28

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@peczenyj peczenyj self-assigned this May 26, 2026
@peczenyj peczenyj merged commit f72e3f2 into devel May 26, 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.

refactor: collect findings/layouts then render

1 participant