Skip to content

review: partition declarations so the layout gate passes - #3

Merged
CMGS merged 1 commit into
masterfrom
review/asl-layout
Aug 12, 2026
Merged

review: partition declarations so the layout gate passes#3
CMGS merged 1 commit into
masterfrom
review/asl-layout

Conversation

@CMGS

@CMGS CMGS commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

asl ./... reported 31 layout findings across six files — all pre-existing (33 at 01300e2, before the 8/2 loc-justify cut), so the gate blocks every commit in this repo regardless of what it touches.

Three rules were being broken:

  • unexported helpers above the exported set — 12 in pkg/scale/sandboxstore_impl.go, 8 in controllers/sandbox_controller.go; they now follow the last exported function of their file.
  • types splitting a method setPodMutator sat between SandboxReconciler and Reconcile, failure between two SandboxClaimReconciler methods, Option/ClaimSpec/ClaimResult/PoolSpec/NodePool/NodeInfo inside Client's. Vocabulary types now cluster ahead of the type they serve.
  • standalone functions interleaved into a method setmain and setupTracing inside options, decodeOptional inside Server, fanOutNodes inside scatterGatherStore, verifySandboxCandidate/isAdoptable inside sandboxEventHandler.

Pure reordering — no line of code changed. Each touched file holds an identical multiset of non-blank lines before and after (312 insertions / 312 deletions).

Verified: go build ./..., go test ./... (all pass), make vet, make fmt-check, make lint (0 issues on linux and darwin), asl ./... clean on both GOOS.

Unexported standalone helpers move below the exported set, vocabulary types
(PodMutator, failure, Option, ClaimSpec/ClaimResult, PoolSpec/NodePool/NodeInfo)
move ahead of the types whose method sets they were splitting, and main /
setupTracing / decodeOptional / fanOutNodes / verifySandboxCandidate leave the
method sets they were interleaved into. Pure reordering: every touched file
keeps an identical set of lines.
@CMGS
CMGS merged commit f3dc7e9 into master Aug 12, 2026
2 checks passed
@CMGS
CMGS deleted the review/asl-layout branch August 12, 2026 03:28
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