RuboCop is a ruby static code analyzer. It's more than just a lint. It verifies the code against ruby best practices and performs code correctness analysis. Celluloid culture doesn't always agree with all rubocop default policies and so we provide a rubocop configuration file that overrides its default behavior.
Integrate celluloid/culture
, then include culture/rupocop/.rubocop.yml
in your default rubocop config.
- See instructions: Integrate the
celluloid/culture
sub-module
inherit_from:
- culture/rubocop/rubocop.yml
The rubocop
gem is automatically included by Celluloid::Sync.gems
when that is implemented.
It's possible to use rubocop for autocorrection of minor problems.
Always verify these changes by running:
bundle exec rubocop
Once you are ready to auto-corret the issues you are shown, run it with the -a
option:
bundle exec rubocop -a