From 8b1f794e78deb1879f3e21d3f8ecbd6923b6929c Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Mon, 30 Jun 2025 12:38:49 +0100 Subject: [PATCH] AutoFix RuboCop Layout/SpaceInsideBlockBraces --- .rubocop_todo.yml | 10 ---------- lib/grape_logging/formatters/rails.rb | 2 +- lib/grape_logging/multi_io.rb | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a9a6c1b..b00d8c6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -29,16 +29,6 @@ Gemspec/RequiredRubyVersion: Exclude: - 'grape_logging.gemspec' -# Offense count: 4 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. -# SupportedStyles: space, no_space -# SupportedStylesForEmptyBraces: space, no_space -Layout/SpaceInsideBlockBraces: - Exclude: - - 'lib/grape_logging/formatters/rails.rb' - - 'lib/grape_logging/multi_io.rb' - # Offense count: 16 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. diff --git a/lib/grape_logging/formatters/rails.rb b/lib/grape_logging/formatters/rails.rb index 501eebd..4d43548 100644 --- a/lib/grape_logging/formatters/rails.rb +++ b/lib/grape_logging/formatters/rails.rb @@ -23,7 +23,7 @@ module GrapeLogging [ "#{exception.message} (#{exception.class})", backtrace_array.join("\n") - ].reject {|line| line == ""}.join("\n") + ].reject { |line| line == "" }.join("\n") end def format_hash(hash) diff --git a/lib/grape_logging/multi_io.rb b/lib/grape_logging/multi_io.rb index 5c70c48..2888ce3 100644 --- a/lib/grape_logging/multi_io.rb +++ b/lib/grape_logging/multi_io.rb @@ -5,7 +5,7 @@ module GrapeLogging end def write(*args) - @targets.each {|t| t.write(*args)} + @targets.each { |t| t.write(*args) } end def close