Approximating “Prettier for Ruby” with RuboCop
18-Apr-2019 2581
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 #Approximating #“Prettier #Ruby” #RuboCop https://rubyonrails.ba/link/approximating-prettier-for-ruby-with-rubocop