This repository provides the base RuboCop configuration for use on Hole19 Rails projects.
Based mainly on Omakase Ruby Styling for Rails and rubocop-github.
Add rubocop-hole19
to your Gemfile, along with its dependencies:
gem "rubocop-hole19", require: false, group: [ :development ]
Then run bundle
, then bundle binstubs rubocop
.
Then add a default .rubocop.yml
file in the root of your application with:
# Hole19 base Ruby styling for Rails
inherit_gem:
rubocop-hole19: rubocop.yml
# Your own specialized rules go here
Now you can run ./bin/rubocop
to check for compliance and ./bin/rubocop -a
to automatically fix violations.