Skip to content

Ruby/Rubocop linter configuration

Notifications You must be signed in to change notification settings

highwingio/livery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highwing's shared style and linting configurations for Ruby projects.

Installation

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

Usage

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.

## Credits

Idea and configuration based on https://github.com/percy/percy-style