No commit activity in last 3 years
No release in over 3 years
My .rubocop.yml template as a separated ruby gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.15
~> 10.0

Runtime

~> 0.49
 Project Readme

Rubocop Template

My .rubocop.yml template as a separated ruby gem.

Thanks

This gem was inspired by percy-style. Check it out, and read an article: Share RuboCop rules across all of your repos.

Installation

Add this line to your application's Gemfile:

group :development do
  gem 'rubocop-template'
end

Or, for a Ruby library, add this to your gemspec:

spec.add_development_dependency 'rubocop-template'

And then run:

$ bundle install

Usage

Create a .rubocop.yml with the following directives:

inherit_gem:
  rubocop-template: default.yml
inherit_from: .rubocop_todo.yml

Now, use rubocop through bundle exec:

$ bundle exec rubocop --auto-gen-config
$ bundle exec rubocop -a

Also you do not need to include rubocop gem directly in your application's dependences. Rubocop-template will include a specific version of rubocop automatically.