From ab8474fd7fb321d235f3a3ebe277baed6da9cd62 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 14 Jun 2024 05:49:49 -0400 Subject: [PATCH] Fix (relax) remaining `RSpec/*` cops (#30693) --- .rubocop/rspec.yml | 10 ++++++++++ .rubocop_todo.yml | 15 --------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/.rubocop/rspec.yml b/.rubocop/rspec.yml index a6f8a7aee0..d2d2f8325d 100644 --- a/.rubocop/rspec.yml +++ b/.rubocop/rspec.yml @@ -1,10 +1,20 @@ --- RSpec/ExampleLength: CountAsOne: ['array', 'heredoc', 'method_call'] + Max: 20 # Override default of 5 + +RSpec/MultipleExpectations: + Max: 10 # Overrides default of 1 + +RSpec/MultipleMemoizedHelpers: + Max: 20 # Overrides default of 5 RSpec/NamedSubject: EnforcedStyle: named_only +RSpec/NestedGroups: + Max: 10 # Overrides default of 3 + RSpec/NotToNot: EnforcedStyle: to_not diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a70caad8c5..8a4e598030 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -27,21 +27,6 @@ Metrics/CyclomaticComplexity: Metrics/PerceivedComplexity: Max: 27 -# Configuration parameters: CountAsOne. -RSpec/ExampleLength: - Max: 18 - -RSpec/MultipleExpectations: - Max: 7 - -# Configuration parameters: AllowSubject. -RSpec/MultipleMemoizedHelpers: - Max: 17 - -# Configuration parameters: AllowedGroups. -RSpec/NestedGroups: - Max: 6 - Rails/OutputSafety: Exclude: - 'config/initializers/simple_form.rb'