GoCardless's shared Rubocop configuration, confirming to our house style.
If you're using RSpec, this will also enforce that your specs conform to GoCardless's house style.
To use gc_ruboconfig
, simply add it to your Gemfile:
gem 'gc_ruboconfig'
The relevant versions of rubocop
, rubocop-rspec
and rubocop-performance
will automatically be installed.
Inherit the config from the gem in your .rubocop.yml
:
inherit_gem:
gc_ruboconfig: rubocop.yml
To publish the gem cut a new tagged release. This can be done via the GitHub UI.
Once the release has been created, the release GitHub Actions workflow will build the gem and push it to the RubyGems registry.