Skip to content

chore(lint): reorder providers/aws structs for fieldalignment - #590

Merged
cristim merged 3 commits into
mainfrom
chore/100-fieldalignment-aws
Oct 20, 2026
Merged

cristim merged 3 commits into
mainfrom
chore/100-fieldalignment-aws

Conversation

@cristim

@cristim cristim commented Oct 20, 2026

Copy link
Copy Markdown
Member

Part of #100. Second of four per-module PRs; the .golangci.yml change lands in the last one.

Changes

Checks

  • No unsafe.Sizeof or binary.Read/Write on these structs; cli, mcp and platform at origin/main have no unkeyed composite literals of module structs (AST scan).
  • go build, go vet, go test -timeout 300s -count=1 ./... and golangci-lint (fieldalignment enabled, tests excluded as in the cli) pass in providers/aws, with and without GOWORK=off.

🤖 Generated with Claude Code

Reorder struct fields to the fieldalignment-optimal layout. Anonymous table structs and offeringprice.Charge literals become keyed so the reorder cannot silently reassign values.

Part of #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 12 billable files and costs up to $3.00.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 24 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 89 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: LeanerCloud/cloud-commitments-go/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 458185aa-7ec4-453f-8125-77c918014fb6
📥 Commits

Reviewing files that changed from the base of the PR and between c93b548 and 459049d.

📒 Files selected for processing: 12
  • providers/aws/internal/offeringprice/offeringprice.go
  • providers/aws/internal/offeringprice/offeringprice_test.go
  • providers/aws/internal/purchasecfg/purchasetest/purchasetest.go
  • providers/aws/provider.go
  • providers/aws/recommendations/client.go
  • providers/aws/recommendations/collection_error.go
  • providers/aws/recommendations/parser_sp.go
  • providers/aws/recommendations/usage_history.go
  • providers/aws/recommendations/utilization.go
  • providers/aws/services/ec2/client.go
  • providers/aws/services/ec2/offering_match.go
  • providers/aws/services/rds/client.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

cristim and others added 2 commits October 20, 2026 17:57
…r in providers/aws

Rebuild each reordered struct body so every field keeps its own doc comment directly above it and group headers head only the fields they describe (repeated per contiguous run where the layout splits a group). Documented fields are blank-line separated so no undocumented field sits under another field comment.

Part of #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cristim

cristim commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

Merge gate verdict (claude-cc-libs)

Every gate holds at head 459049d:

  • Two independent reviews approve the reviewed head 1fdf9d3. The branch was then updated from main, and the PR diff is byte-identical to the reviewed diff (compared mechanically).
  • CI is green on 459049d, which is the reviewed change on top of current main.
  • 0 unresolved threads; MERGEABLE/CLEAN.

CodeRabbit is waived as a merge gate under the 2026-10-19 decision. Squash-merging.

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