TLDR · PROGRAMMING, DESIGN & DATA SCIENCE

FORMATTING AN ENTIRE 25 MILLION LINE CODEBASE OVERNIGHT: THE RUBYFMT STORY

stripe.dev15 min read

Summary from the TLDR newsletter

Stripe runs the world's largest Ruby codebase. The pain of not having an auto-formatter was visible in how its engineers worked. In 2022, the company set two engineers from its infrastructure team to work full-time on rubyfmt, a tool that is currently being used to format 100% of Stripe's 42 million lines of Ruby. This post tells the story of how rubyfmt came to be.