Skip to content

Instantly share code, notes, and snippets.

@reabiliti
Last active May 21, 2020 18:23
Show Gist options
  • Save reabiliti/e19c547884b2af0180cf42f19f6b7e27 to your computer and use it in GitHub Desktop.
Save reabiliti/e19c547884b2af0180cf42f19f6b7e27 to your computer and use it in GitHub Desktop.
# These are all the cops that are enabled in the default configuration.
require:
- rubocop-rails
- rubocop-performance
- rubocop-rspec
AllCops:
NewCops: enable
Metrics/LineLength:
Description: 'Limit lines to 80 characters.'
StyleGuide: '#120-character-limits'
Enabled: true
Max: 120
Exclude:
- 'db/seeds.rb'
- 'config/initializers/*.rb'
Metrics/BlockLength:
Description: 'Avoid long blocks with many lines.'
Enabled: true
Exclude:
- '**/*_spec.rb'
- 'db/schema.rb'
- 'config/routes.rb'
- 'spec/factories/**/*.rb'
- 'config/initializers/*.rb'
- 'config/environments/*.rb'
Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'db/**/*'
- 'config/**/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment