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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper