RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Clean up Your Messy Legacy Ruby on Rails Codebase With Rubocop

Setting up Rubocop on a new Rails application will get you on the path towards a well-maintained codebase. But what if you have an older project?

When you set up Rubocop on an existing application, it’ll likely show you hundreds or thousands of issues the first time you run static code analysis. That’s enough to get developers to abandon the plan to use Rubocop to improve their app.

Instead of getting overwhelmed, here are a few tips you can use to chip away at those issues to reduce those Rubocop offenses quickly and get your old Rails codebase clean and organized for long-term maintainability: https://youtu.be/PsXnIBe2kqw

Comments

Clean up Your Messy Legacy Ruby on Rails Codebase With Rubocop

It will still be messy and legacy, but now with a rubocop 😉

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in