A collection of reusable RuboCop configuration files for inclusion in other Ruby projects.
Add the following to your project's Gemfile
and run bundle install
:
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rake"
gem "rubocop-rspec"
Add the following to your project's .rubocop.yml
:
inherit_from:
- https://jgarber623.github.io/rubocop-configs/.rubocop.yml
- https://jgarber623.github.io/rubocop-configs/.rubocop-rails.yml
- https://jgarber623.github.io/rubocop-configs/.rubocop-rspec.yml
As noted above, the configurations in this project require one or more of the following RuboCop extensions:
- rubocop-performance
- rubocop-rails (
.rubocop-rails.yml
only) - rubocop-rake
- rubocop-rspec (
.rubocop-rspec.yml
only)
The following RuboCop extensions are recommended for Ruby on Rails projects:
The following RuboCop extension is recommended for RubyGem projects:
rubocop-configs is freely available under the MIT License. Use it, learn from it, fork it, improve it, change it, tailor it to your needs.