Formatting a 25M-line codebase overnight

· coding · Source ↗

TLDR

  • Stripe’s Developer Productivity team rolled out rubyfmt, a Rust-based zero-config Ruby autoformatter, across a 25 million line codebase in a single overnight run.

Key Takeaways

  • rubyfmt is Rust-based and zero-config, designed for speed at scale across the world’s largest known Ruby codebase.
  • Stripe extended rubyfmt internally before rolling it out, suggesting the upstream tool needed patches for edge cases at this scale.
  • The overnight rollout framing implies a single-batch atomic reformat rather than incremental per-PR adoption.
  • Developer Productivity teams at large monorepo shops face tooling, coordination, and diff-noise problems that a one-night blitz can sidestep.

Hacker News Comment Review

  • No substantive HN discussion yet.

Original | Discuss on HN