Approximating “Prettier for Ruby” with RuboCop

We recently migrated Flexport’s Ruby codebase to a new RuboCop configuration that yields Prettier-like formatting results. Out of the box, RuboCop didn’t support autocorrection of line lengths, multi-line expression layout consistency, etc. So we wrote a few new cops internally that we are now open sourcing to share with the broader community. Here are a few before-and-after examples:.
Approximating “Prettier for Ruby” with RuboCop #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/approximating-prettier-for-ruby-with-rubocop

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles