BlogsStripeCodebase Formatting and Standardization

Codebase Formatting and Standardization

Codebase Formatting and Standardization

1
posts
2026

This feature thread tracks Stripe's initiatives to maintain code quality and developer productivity across its massive codebase. It began with the introduction of rubyfmt, a Rust-based autoformatter, which was rolled out across the entire 25 million line Ruby codebase to ensure consistent formatting overnight. This effort highlights Stripe's commitment to large-scale code standardization and developer tooling. This post details the specific story and technical considerations behind the successful overnight rollout of rubyfmt across Stripe's 25 million line Ruby codebase, emphasizing the zero-config, ultra-fast nature of the Rust-based autoformatter and the strategies employed for such a large-scale deployment.

2026

Formatting an entire 25 million line codebase overnight: the rubyfmt story

4/28/2026

This post details the story and technical considerations behind the successful overnight rollout of rubyfmt across Stripe's 25 million line Ruby codebase. It highlights the zero-config, ultra-fast nature of the Rust-based autoformatter and the strategies employed for such a large-scale deployment.