With this version update, rubocop-bitcrowd
adapts to RuboCop's new modularized architecture of having separate gems for different cop targets (Rails, Rspec, Performance).
rubocop-bitcrowd
includes separate configuration files for each RuboCop gem. To continue using the previous configuration including rules for Rspec and Rails, add the respective gems to your Gemfile:
gem 'rubocop-rails', require: false
gem 'rubocop-rspec', require: false
And update the configuration in your .rubocop.yml
to include the bitcrowd rules:
inherit_gem:
rubocop-bitcrowd:
- .rubocop.yml
- .rubocop-rspec.yml
- .rubocop-rails.yml
As a new addition, rubocop-bitcrowd
now also includes rules for the rubocop-performance
gem. To use them, add the gem to your Gemfile:
gem 'rubocop-performance', require: false
Then include the bitcrowd config in your .rubocop.yml
:
inherit_gem:
rubocop-bitcrowd:
- .rubocop.yml
- .rubocop-rspec.yml
- .rubocop-rails.yml
- .rubocop-performance.yml
Potentially breaking changes:
- #34 Extract
rails
cops into separate configuration based on rubocop-rails, following the modularization ofrubocop
itself.
New features:
- #32 add possibility to include rubocop-performance cops.