Installing Rubocop Install Rubocop by adding it to your Gemfile: gem 'rubocop' gem 'rubocop-rails' And running: bundle install