Skip to content

Instantly share code, notes, and snippets.

@huarmenta
Created April 12, 2019 17:30
Show Gist options
  • Save huarmenta/f0e3b5c6af2cd3d95c32db796fbd0e9e to your computer and use it in GitHub Desktop.
Save huarmenta/f0e3b5c6af2cd3d95c32db796fbd0e9e to your computer and use it in GitHub Desktop.
Rubocop base configuration for engines
# Inheritance
# inherit_from:
# - .rubocop_todo.yml
# Extensions
require:
- rubocop-rspec
- rubocop-performance
Rails:
Enabled: true
AllCops:
Exclude:
- 'Rakefile'
- 'db/**/*'
- 'config/**/*'
- 'bin/{bundle,rails,rake,setup,update}'
- !ruby/regexp /old_and_unused\.rb$/
- 'spec/spec_helper.rb'
- 'spec/dummy/**/*'
Rails/UnknownEnv:
Exclude:
- 'spec/rails_helper.rb'
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
RSpec/EmptyExampleGroup:
Exclude:
- 'spec/**/*.rb'
RSpec/ExampleLength:
Enabled: false
# TODO: Check https://github.com/rubocop-hq/rubocop-rspec/issues/682
RSpec/ImplicitSubject:
Enabled: false
RSpec/NestedGroups:
Max: 4
Style/AsciiComments:
Enabled: false
Style/SymbolArray:
EnforcedStyle: brackets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment