This repository contains the default Ruby styles for RoQua projects.
Steps to add to a Rails project:
Add the following to the Gemfile:
gem 'roqua_styleguide', git: 'https://gitlab.roqua.nl/roqua/styleguide.git'
Remove the existing rubocop
gem reference from the Gemfile if it exists
Run bundle
Add the following to the Rakefile
:
spec = Gem::Specification.find_by_name 'roqua_styleguide'
load "#{spec.gem_dir}/lib/tasks/styleguide.rake"
Run rake styleguide:update
Add this to the .rubocop.yml file:
inherit_from:
- styleguide/ruby/{THE_CORRECT_STYLE_FILE}
Commit the new styleguide file(s) to the repo