Skip to content

chore: gofmt the 6 pre-existing unformatted files on refactor/total#121

Merged
jacaudi merged 1 commit into
refactor/totalfrom
chore/gofmt-refactor-total
May 15, 2026
Merged

chore: gofmt the 6 pre-existing unformatted files on refactor/total#121
jacaudi merged 1 commit into
refactor/totalfrom
chore/gofmt-refactor-total

Conversation

@jacaudi
Copy link
Copy Markdown
Owner

@jacaudi jacaudi commented May 15, 2026

Summary

make lint runs gofmt -l . | tee /dev/stderr | (! read) — it fails repo-wide if any Go file is unformatted. Six files have accumulated gofmt drift across the prior squash-merges onto refactor/total and are dirty on the base branch itself:

  • api/v1alpha1/cloudflareoperator_types_test.go — trailing blank line
  • internal/reconcile/owner.go — trailing blank line
  • internal/controller/tunnel/setup_indexers_test.go — comment-column re-alignment
  • internal/controller/zone/zone_controller_test.go — struct-literal field alignment
  • internal/controller/zone/zoneconfig_controller.go — one import moved into its correct group
  • test/envtest/tunnel_annotation_inheritance_test.go — whitespace

These predate and are unrelated to any in-flight feature branch, but they make make lint fail for every branch cut from refactor/total (incl. the open P4 and P5 PRs) for a base-branch reason. Pure gofmt -w; zero behavior change.

Test Plan

  • gofmt -l . now reports nothing (whole repo clean)
  • Exactly the 6 files changed (19 insertions / 21 deletions, all whitespace/import-group)
  • go build ./... clean · go vet ./... clean
  • go test -count=1 ./... — all packages pass (no behavior change)

🤖 Generated with Claude Code

These six files accumulated gofmt drift across the prior squash-merges
onto refactor/total (trailing blank lines, struct/comment column
re-alignment, one import-group reorder). They predate and are unrelated
to any in-flight feature branch, but `make lint` (gofmt -l . | (! read))
fails repo-wide on their account — blocking CI for every branch cut from
refactor/total. Pure `gofmt -w`; zero behavior change (build, vet, full
unit suite green).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jacaudi jacaudi merged commit 331c9b8 into refactor/total May 15, 2026
6 checks passed
@jacaudi jacaudi deleted the chore/gofmt-refactor-total branch May 15, 2026 22:06
@wall-e-one
Copy link
Copy Markdown
Contributor

wall-e-one Bot commented May 22, 2026

🎉 This PR is included in version 0.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@wall-e-one wall-e-one Bot added the released label May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant