Skip to content

Adopt rubyfmt for code formatting - #18

Merged
dduugg merged 3 commits into
mainfrom
add-rubyfmt
Jul 29, 2026
Merged

Adopt rubyfmt for code formatting#18
dduugg merged 3 commits into
mainfrom
add-rubyfmt

Conversation

@dduugg

@dduugg dduugg commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reformats all Ruby files (lib/, spec/, Rakefile, code_manifest.gemspec, Gemfile, bin/console) with rubyfmt v0.14.1
  • Adds a Rubyfmt CI job that installs the pinned rubyfmt binary and runs rubyfmt --check, mirroring the convention already used in rubyatscale/pack_stats
  • Documents the format/check commands in AGENTS.md
  • Configures branch protection on main (previously unprotected) to require the Tests: Ruby 3.3, Tests: Ruby 3.4, Tests: Ruby 4.0, and Rubyfmt checks before merge

Test plan

  • bundle exec rspec passes locally (19 examples, 0 failures) after reformatting
  • rubyfmt --check passes locally against all formatted paths
  • CI Rubyfmt job passes on this PR

Reformats all Ruby files with rubyfmt v0.14.1 and adds a required
"Rubyfmt" CI check that runs `rubyfmt --check` against the codebase,
mirroring the convention already used in rubyatscale/pack_stats.
@dduugg
dduugg requested a review from a team as a code owner July 29, 2026 16:47
Comment thread .github/workflows/ci.yml Fixed
dduugg added 2 commits July 29, 2026 09:53
Restrict the push trigger to main so pushes to a branch with an open
PR only trigger the pull_request run, not both.
Addresses the GitHub Advanced Security finding
"actions/missing-workflow-permissions": without an explicit
permissions block, jobs inherit the repo/org default GITHUB_TOKEN
permissions. Neither job needs more than read access to the repo.
@dduugg
dduugg merged commit 9f5f100 into main Jul 29, 2026
7 checks passed
@dduugg
dduugg deleted the add-rubyfmt branch July 29, 2026 16:57
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