Common lint rules for Ruby projects
Add this line to your application's Gemfile:
# Common rubocop rules
gem 'rubocop-sigbit', git: "https://github.com/significantbit/rubocop-sigbit.git"
And then execute:
$ bundle install
Add to the top of your .rubocop.yml
:
inherit_gem:
rubocop-sigbit: .rubocop.yml
AllCops:
Exclude:
- spec/**/*
- vendor/**/*
- node_modules/**/*
- db/schema.rb
- db/migrate/**/*
- bin/**/*
- lib/**/*.rake