lib/rubocop/cop/layout/align_hash.rb in rubocop-0.59.2 vs lib/rubocop/cop/layout/align_hash.rb in rubocop-0.60.0

- old
+ new

@@ -5,11 +5,11 @@ module Layout # Check that the keys, separators, and values of a multi-line hash # literal are aligned according to configuration. The configuration # options are: # - # - key (left align keys) + # - key (left align keys, one space before hash rockets and values) # - separator (align hash rockets and colons, right align keys) # - table (left align keys, hash rockets, and values) # # The treatment of hashes passed as the last argument to a method call # can also be configured. The options are: @@ -23,10 +23,14 @@ # # bad # { # :foo => bar, # :ba => baz # } + # { + # :foo => bar, + # :ba => baz + # } # # # good # { # :foo => bar, # :ba => baz @@ -65,9 +69,13 @@ # @example EnforcedColonStyle: key (default) # # bad # { # foo: bar, # ba: baz + # } + # { + # foo: bar, + # ba: baz # } # # # good # { # foo: bar,