AutoFix RuboCop Layout/SpaceInsideBlockBraces

This commit is contained in:
Pieter Oliver 2025-06-30 12:38:49 +01:00
parent 0ac850435e
commit 8b1f794e78
3 changed files with 2 additions and 12 deletions

View file

@ -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.

View file

@ -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)

View file

@ -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