AutoFix RuboCop Layout/EmptyLinesAroundAccessModifier

This commit is contained in:
Pieter Oliver 2025-06-30 11:05:37 +01:00
parent 86f2485b2d
commit 223c84cd2c
2 changed files with 1 additions and 8 deletions

View file

@ -29,14 +29,6 @@ Gemspec/RequiredRubyVersion:
Exclude:
- 'grape_logging.gemspec'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: around, only_before
Layout/EmptyLinesAroundAccessModifier:
Exclude:
- 'lib/grape_logging/formatters/default.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.

View file

@ -18,6 +18,7 @@ module GrapeLogging
end
private
def format_hash(hash)
hash.keys.sort.map { |key| "#{key}=#{hash[key]}" }.join(' ')
end