How to use Omakase Rubocop Linter/Formatter Rules for Rails

August 16, 2024

Track your progress

Sign in to track your progress and access subscription-only lessons.

Log In

Your Teachers

Hi, I'm Chris. I'm the creator of GoRails, Hatchbox.io and Jumpstart. I spend my time creating tutorials and tools to help Ruby on Rails developers build apps better and faster.

Collin Jilbert

Ruby on Rails Developer | Lover of Music | Skateboarder | Proud Papa | Co-editor @therubyradar | Launched @fleur_de_ruby

Kent Crutchfield

Hi, my name is Kent and in between answering Hatchbox support tickets I like to make videos.

About This Episode

Formatting Ruby code can be a point of contention because the language is so flexible, but it

Notes

Rails has never provided any formatting / linter functionality out of the box until now. These rules serve as a starting place and focus mostly around the basics of formatting Ruby code and ensuring consistency with spacing and other little things.

The Omakase Rubocop Rails library can also be easily extended with additional Rubocop rules that your team may like to enforce.

Want to stay up-to-date with Ruby on Rails?

Join 86,796+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.