.rubocop.yml
require:
- rubocop-performance
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.7
NewCops: enable
Exclude:
- node_modules/**/*
- spec/dummy/db/schema.rb
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Metrics/AbcSize:
Enabled: true
Exclude:
- spec/dummy/db/**/*.rb
Metrics/BlockLength:
Enabled: true
Exclude:
- spec/dummy/config/initializers/*
- spec/**/*_spec.rb
Metrics/MethodLength:
Enabled: true
Max: 20
Exclude:
- db/**/*
- spec/dummy/db/**/*
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
Style/AccessorGrouping:
Enabled: false
Style/Documentation:
Enabled: false
RSpec/NestedGroups:
Enabled: false
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma