Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rubocop configuration when using rubocop-rails gem
inherit_gem:
rubocop-rails:
- config/rails.yml
AllCops:
TargetRubyVersion: 2.5.1
DisabledByDefault: false
Exclude:
- "bin/**"
Metrics/AbcSize:
Exclude:
- "db/migrate/**"
Metrics/BlockLength:
ExcludedMethods: ["describe", "context"]
Exclude:
- "Guardfile"
- "db/migrate/**"
- "db/schema.rb"
- "**/**.rake"
- "spec/factories/**/**"
- "config/routes.rb"
Metrics/LineLength:
Exclude:
- "db/migrate/**"
- "db/schema.rb"
Metrics/MethodLength:
Exclude:
- "db/migrate/**"
- "db/schema.rb"
Style/Documentation:
Include:
- "lib/**"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.