mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
AutoFix RuboCop Layout/SpaceInsideBlockBraces
This commit is contained in:
parent
0ac850435e
commit
8b1f794e78
3 changed files with 2 additions and 12 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue