.rubocop.yml
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
SuggestExtensions: false
Exclude:
- vendor/**/*
- bin/**/*
require:
- rubocop-performance
- rubocop-rspec
inherit_from: .rubocop_todo.yml
Layout/LineLength:
Max: 215
Lint/EmptyBlock:
Exclude:
- spec/**/*_spec.rb
Style/Documentation:
Enabled: false
Style/MultilineIfModifier:
Enabled: false
Style/RaiseArgs:
Enabled: false
Style/RedundantArrayConstructor:
Enabled: false # doesn't work well with params definition
Metrics/AbcSize:
Max: 45
Metrics/BlockLength:
Max: 30
Exclude:
- spec/**/*_spec.rb
Metrics/ClassLength:
Max: 300
Metrics/CyclomaticComplexity:
Max: 15
Metrics/ParameterLists:
MaxOptionalParameters: 4
Metrics/MethodLength:
Max: 32
Metrics/ModuleLength:
Max: 220
Metrics/PerceivedComplexity:
Max: 15
RSpec/Capybara/FeatureMethods:
Enabled: false
RSpec/ExampleLength:
Max: 60
RSpec/NestedGroups:
Max: 6
RSpec/FilePath:
SpecSuffixOnly: true
RSpec/SpecFilePathFormat:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Max: 11
RSpec/ContextWording:
Enabled: false
RSpecRails/HaveHttpStatus:
Enabled: false