Repository navigation
chore(lint): reorder pkg structs for fieldalignment - #589
Merged
Merged
Conversation
Contributor
Reorder struct fields to the fieldalignment-optimal layout. Each field keeps its own doc comment directly above it; group headers head only the fields they describe. Part of #100 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reorder struct fields to the fieldalignment-optimal layout. Each field keeps its own doc comment directly above it; group headers head only the fields they describe. pkg/ladder (PR #441) and pkg/recfilter/dedupe.go (PR #491) are owned by open PRs and get a narrow nolint instead. Part of #100 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reorder struct fields to the fieldalignment-optimal layout. Each field keeps its own doc comment directly above it; group headers head only the fields they describe. jsonField and numField literals become keyed so the reorder cannot silently reassign values. Part of #100 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cristim
force-pushed
the
chore/100-fieldalignment-pkg
branch
from
October 20, 2026 20:24
00d4f47 to
a20c17c
Compare
Member
Author
Merge gate verdict (claude-cc-libs)Every gate holds at head c93c884:
CodeRabbit is waived as a merge gate under the 2026-10-19 decision. Squash-merging. |
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #100. First of four per-module PRs (pkg, providers/aws, azure, gcp) that finish the fieldalignment cleanup; the
.golangci.ymlchange lands in the last one, once every module passes.Changes
pkgstruct fields to the fieldalignment-optimal layout (field doc comments move with their fields).jsonFieldandnumFieldinpkg/insuranceget keyed literals so the reorder cannot silently reassign values.//nolint:govet // fieldalignment: file owned by open PR #Non three structs in files that open PRs modify:AllocationInput(pkg/ladder/allocate.go, fix(ladder): stop subtracting existing commitment from residual baselines #441),BufferReshapeConfig(pkg/ladder/capability.go, fix(ladder): stop subtracting existing commitment from residual baselines #441),DuplicateChecker(pkg/recfilter/dedupe.go, fix(azure): count savings plans billed to another subscription in the duplicate check #491).Checks
unsafe.Sizeoforbinary.Read/Writeuse on these structs.csv:tags have no CSV library behind them; JSON field order in marshalled output changes but no golden files in cli, mcp or platform pin it.go build,go vet,go test -timeout 300s -count=1 ./...and golangci-lint (fieldalignment enabled, tests excluded as in the cli) pass inpkg, with and withoutGOWORK=off.🤖 Generated with Claude Code
Summary by CodeRabbit