Citizens Advice shared Ruby/Rails style rubocop settings.
Add this line to your application's Gemfile:
group :test, :development do
gem "citizens-advice-style"
end
And then run
$ bundle
Or install it yourself as
$ gem install citizens-advice-style
Create .rubocop.yml
file with the following configuration:
inherit_gem:
citizens-advice-style:
- default.yml # For Citizens Advice ruby styles
- default-rails.yml # For Citizens Advice rails styles
Now run
$ bundle exec rubocop
Override any styles you want in your local .rubocop.yml
file.
Bug reports and pull requests are welcome on GitHub
- Run
bundle exec rubocop
locally, to validate structure of yml files. - Update
lib/citizens-advice/style/version.rb
with appropriate new version number - Create release branch and push changes up to github
- After review & merge, tag the version on github so people can reference it as a new package