Skip to content

Add gofmt CI check#72

Merged
thieman merged 4 commits intomainfrom
thieman/gofmt-ci
Mar 12, 2026
Merged

Add gofmt CI check#72
thieman merged 4 commits intomainfrom
thieman/gofmt-ci

Conversation

@thieman
Copy link
Collaborator

@thieman thieman commented Mar 12, 2026

Summary

  • Adds a gofmt job to the CI workflow — fails if any .go files are not properly formatted
  • Fixes the 7 files that were already unformatted on main so the check passes immediately on merge

Files reformatted

  • interp/builtins/strings_cmd/strings.go
  • interp/builtins/tail/tail.go
  • interp/builtins/wc/wc.go
  • interp/builtins/wc/wc_test.go
  • interp/register_builtins.go
  • tests/compliance_test.go
  • tests/scenarios_test.go

Test plan

  • CI gofmt job passes on this PR
  • No logic changes — only whitespace/formatting diffs in the Go files

🤖 Generated with Claude Code

thieman and others added 3 commits March 12, 2026 12:30
Adds a gofmt job to the CI workflow that fails if any .go files are not
properly formatted. Also fixes the 7 files that were already unformatted
on main so the check passes immediately on merge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
printf.go was merged to main without being gofmt'd; fix it so the new
gofmt CI check passes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@thieman thieman merged commit 46751aa into main Mar 12, 2026
9 checks passed
@thieman thieman deleted the thieman/gofmt-ci branch March 12, 2026 16:33
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.

2 participants