Captive Rubocop config
Rubocop shared configurations for projects
Install
add the follow line into your Gemfile
group :test, :development do
gem 'rubocop-config-captive'
end
And then in a terminal
$ bundle install
[...]
Usage
# /.rubocop.yml
inherit_gem:
rubocop-config-captive:
- config/default.yml
# -OR-
# - config/rubocop-XXX.yml
My project has too many errors
Firstly, you can use bundle exec rubocop -a to auto-correct your project
Then if you have too many warnings, you can use the command line :
bundle exec rubocop --auto-gen-config to create .rubocop_todo.yml file that ignore these errors
Contributing
To contribute, here are some inspirations for good configurations :
License
MIT © Captive Studio [email protected]