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'
endFor a Ruby library, also add this to your gemspec:
spec.add_development_dependency 'livery'And then run:
$ bundle installCreate a .rubocop.yml with the following directives:
inherit_gem:
livery:
- default.ymlNow, run:
$ bundle exec rubocopYou 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