From cdfc27d851981189115f4efcf4b91dc51860260b Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Tue, 25 Apr 2023 23:33:02 +0000 Subject: [PATCH 1/3] :police_car: regenerate rubocop todo --- .rubocop_todo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2d540c9..618164a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 180` -# on 2023-04-20 23:33:11 UTC using RuboCop version 1.50.2. +# on 2023-04-25 23:33:01 UTC using RuboCop version 1.50.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new From e30fe87d6184ec26a00f0a02522abbf0b5609e15 Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Tue, 25 Apr 2023 23:33:06 +0000 Subject: [PATCH 2/3] :police_car: RSpec/NotToNot --- .rubocop_todo.yml | 9 --------- spec/lib/dispatch-rider/handlers/base_spec.rb | 2 +- .../publisher/configuration_reader_spec.rb | 2 +- spec/lib/dispatch-rider/scheduled_job_spec.rb | 2 +- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 618164a..4bfcce7 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -294,15 +294,6 @@ RSpec/NamedSubject: RSpec/NestedGroups: Max: 5 -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: not_to, to_not -RSpec/NotToNot: - Exclude: - - 'spec/lib/dispatch-rider/handlers/base_spec.rb' - - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb' - - 'spec/lib/dispatch-rider/scheduled_job_spec.rb' # Offense count: 2 RSpec/RepeatedExampleGroupDescription: diff --git a/spec/lib/dispatch-rider/handlers/base_spec.rb b/spec/lib/dispatch-rider/handlers/base_spec.rb index ec48676..4528f2d 100644 --- a/spec/lib/dispatch-rider/handlers/base_spec.rb +++ b/spec/lib/dispatch-rider/handlers/base_spec.rb @@ -53,7 +53,7 @@ def retry_timeout example do expect { handler.do_process(message) - }.to_not raise_exception + }.not_to raise_exception end example do diff --git a/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb b/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb index bc72b1d..8e9c82b 100644 --- a/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb +++ b/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb @@ -25,7 +25,7 @@ it "deals with an empty configuration hash" do expect { subject.load_config(DispatchRider::Publisher::Configuration.new, publisher) - }.to_not raise_exception + }.not_to raise_exception end describe "notification_services parsing" do diff --git a/spec/lib/dispatch-rider/scheduled_job_spec.rb b/spec/lib/dispatch-rider/scheduled_job_spec.rb index 57aabce..f951118 100644 --- a/spec/lib/dispatch-rider/scheduled_job_spec.rb +++ b/spec/lib/dispatch-rider/scheduled_job_spec.rb @@ -21,7 +21,7 @@ subject(:due_jobs) { described_class.due } it { expect(due_jobs).to include due_job } - it { expect(due_jobs).to_not include later_job } + it { expect(due_jobs).not_to include later_job } end describe "due tomorrow" do From 799dbda9afa744a82108bd030adf516904bb7120 Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Tue, 25 Apr 2023 23:33:12 +0000 Subject: [PATCH 3/3] :police_car: regenerate rubocop todo --- .rubocop_todo.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 4bfcce7..2517961 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 180` -# on 2023-04-25 23:33:01 UTC using RuboCop version 1.50.2. +# on 2023-04-25 23:33:12 UTC using RuboCop version 1.50.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -294,7 +294,6 @@ RSpec/NamedSubject: RSpec/NestedGroups: Max: 5 - # Offense count: 2 RSpec/RepeatedExampleGroupDescription: Exclude: