Highwing's shared style and linting configurations for Ruby projects.
Add this line to your application's Gemfile:
group :test, :development do
gem 'livery', github: 'highwingio/livery'
end
For a Ruby library, also add this to your gemspec:
spec.add_development_dependency 'livery'
And then run:
$ bundle install
Create a .rubocop.yml
with the following directives:
inherit_gem:
livery:
- default.yml
Now, run:
$ bundle exec rubocop
You do not need to include Rubocop directly in your application's dependencies - Livery will include the proper versions shared across all projects.
Idea and configuration based on https://github.com/percy/percy-style