Provides standard shared rubocop configuration for Simply Business applications. No more copying
.rubocop.yml, no more out-of-sync configuration files. Yay!
Add this line to your application's Gemfile:
gem 'simplycop', git: 'firstname.lastname@example.org:simplybusiness/simplycop.git'
Then install gems by executing:
$ bundle install
Put following lines at the beginning of your
inherit_gem: simplycop: .rubocop.yml AllCops: Exclude: - 'vendor/**/*'
Run Rubocop as you would usually do, i.e.
$ bundle exec rubocop
or from your continuous integration tool.
- If you are implementing this in a non-rails project, you probably don't want or need the rails cops. In case they cause problems, you can exclude them using:
Rails: Enabled: false
- When adding rubocop and simplycop to a legacy project, you might want to initially disable some of the rules.