Move rspec styleguide to separate file

This commit is contained in:
David Cook
2024-02-28 16:16:29 +11:00
parent 7f77de89fc
commit 6f2b29eeec
3 changed files with 13 additions and 11 deletions

View File

@@ -15,9 +15,10 @@ inherit_from:
# The relaxed style rules as a common starting point which we can refine.
- .rubocop_relaxed_styleguide.yml
# Our Open Food Network style guide. If you want to see all violations,
# Our Open Food Network style guides. If you want to see all violations,
# then use only that configuration:
#
# bundle exec rubocop -c .rubocop_styleguide.yml
#
- .rubocop_styleguide.yml
- .rubocop_rspec_styleguide.yml

View File

@@ -0,0 +1,11 @@
# OFN styleguide for rubocop-rspec
RSpec/ExpectChange:
Enabled: true
EnforcedStyle: block
RSpec/MultipleExpectations:
Max: 5 # Default 1
RSpec/MultipleMemoizedHelpers:
Max: 10 # Default 5

View File

@@ -125,16 +125,6 @@ Rails/SkipsModelValidations:
- update_column
- update_columns
RSpec/ExpectChange:
Enabled: true
EnforcedStyle: block
RSpec/MultipleExpectations:
Max: 5 # Default 1
RSpec/MultipleMemoizedHelpers:
Max: 10 # Default 5
Style/Documentation:
Enabled: false