From f3552bc1ff7f5501064a436335d1ea0647f04e37 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Tue, 8 Jul 2025 17:23:49 +0100 Subject: [PATCH] AutoFix RuboCop Style/BlockDelimiters --- .rubocop_todo.yml | 11 ----------- spec/lib/grape_logging/formatters/rails_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b4f81f8..29ffa79 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -97,17 +97,6 @@ Style/BlockComments: Exclude: - 'spec/spec_helper.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. -# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces -# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object -# FunctionalMethods: let, let!, subject, watch -# AllowedMethods: lambda, proc, it -Style/BlockDelimiters: - Exclude: - - 'spec/lib/grape_logging/formatters/rails_spec.rb' - # Offense count: 3 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: MinBranchesCount. diff --git a/spec/lib/grape_logging/formatters/rails_spec.rb b/spec/lib/grape_logging/formatters/rails_spec.rb index 9686881..433d02a 100644 --- a/spec/lib/grape_logging/formatters/rails_spec.rb +++ b/spec/lib/grape_logging/formatters/rails_spec.rb @@ -6,7 +6,7 @@ describe GrapeLogging::Formatters::Rails do let(:datetime) { Time.new('2018', '03', '02', '10', '35', '04', '+13:00') } let(:exception_data) { ArgumentError.new('Message') } - let(:hash_data) { + let(:hash_data) do { status: 200, time: { @@ -18,7 +18,7 @@ describe GrapeLogging::Formatters::Rails do path: '/api/endpoint', host: 'localhost' } - } + end describe '#call' do context 'string data' do