Split RSpec related rubocop rules into a separate file

This commit is contained in:
Eric Schultz 2021-04-07 16:42:43 -05:00 committed by Eric Schultz
parent 30e93e5bbe
commit 8bf52d2579
2 changed files with 24 additions and 14 deletions

View file

@ -1,3 +1,6 @@
inherit_from:
- .rubocop_rspec.yml
AllCops:
NewCops: enable
TargetRubyVersion: 2.6
@ -722,7 +725,6 @@ AllCops:
require:
- rubocop-rails
- rubocop-rake
- rubocop-rspec
Layout/IndentationStyle:
EnforcedStyle: tabs
@ -734,19 +736,6 @@ Metrics/BlockLength:
Exclude:
- '**/*_spec.rb'
RSpec/ExampleLength:
Max: 20
RSpec/NestedGroups:
# we do this because I see no gain to being super restrictive
Max: 5
RSpec/NotToNot:
Enabled: false
RSpec/SharedExamples:
Enabled: false
Style/ClassAndModuleChildren:
EnforcedStyle: compact

21
.rubocop_rspec.yml Normal file
View file

@ -0,0 +1,21 @@
require:
- rubocop-rspec
RSpec/ExampleLength:
Max: 20
RSpec/NestedGroups:
# we do this because I see no gain to being super restrictive
Max: 5
RSpec/NotToNot:
Enabled: false
RSpec/SharedExamples:
Enabled: false
RSpec/ImplicitSubject:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Max: 10