File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ I18n/GetText/DecorateStringFormattingUsingPercent:
22
22
I18n/RailsI18n/DecorateString :
23
23
Enabled : false
24
24
25
- # This cop supports safe auto-correction (--auto-correct).
26
- Layout/SpaceAroundMethodCallOperator :
27
- Exclude :
28
- - ' lib/puppet/network/formats.rb'
29
-
30
25
# This cop supports safe auto-correction (--auto-correct).
31
26
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
32
27
# SupportedStylesForExponentOperator: space, no_space
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def render(datum)
160
160
if datum . is_a? ( Hash ) && datum . keys . all? { |x | x . is_a? ( String ) || x . is_a? ( Numeric ) }
161
161
output = '' . dup
162
162
column_a = datum . empty? ? 2 : datum . map { |k , _v | k . to_s . length } . max + 2
163
- datum . sort_by { |k , _v | k . to_s } . each do |key , value |
163
+ datum . sort_by { |k , _v | k . to_s } . each do |key , value |
164
164
output << key . to_s . ljust ( column_a )
165
165
output << json . render ( value )
166
166
. chomp . gsub ( /\n */ ) { |x | x + ( ' ' * column_a ) }
You can’t perform that action at this time.
0 commit comments