Skip to content

Instantly share code, notes, and snippets.

@beauraF
Last active November 3, 2019 15:39
Show Gist options
  • Save beauraF/d803f9081f942d9510beb59ac5fd1ca2 to your computer and use it in GitHub Desktop.
Save beauraF/d803f9081f942d9510beb59ac5fd1ca2 to your computer and use it in GitHub Desktop.
Simple rubocop configuration for Rails
require:
- rubocop-rails
- rubocop-performance
AllCops:
Exclude:
- 'bin/**/*'
- 'db/schema.rb'
- 'node_modules/**/*'
- 'vendor/**/*'
Layout/AlignArguments:
Enabled: true
EnforcedStyle: with_fixed_indentation
Metrics/BlockLength:
Enabled: true
Exclude:
- 'config/initializers/devise.rb'
Metrics/LineLength:
Enabled: true
Max: 120
Metrics/MethodLength:
Enabled: true
Exclude:
- 'db/migrate/*'
SkipsModelValidations:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: true
EnforcedStyle: compact
Exclude:
- 'config/application.rb'
Style/Documentation:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: true
EnforcedStyleForMultiline: comma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment