lib/rubocop/cop/layout/hash_alignment.rb in rubocop-1.29.1 vs lib/rubocop/cop/layout/hash_alignment.rb in rubocop-1.30.0
- old
+ new
@@ -188,9 +188,11 @@
'one line.',
KeywordSplatAlignment => 'Align keyword splats with the rest of the hash if it spans ' \
'more than one line.'
}.freeze
+ SEPARATOR_ALIGNMENT_STYLES = %w[EnforcedColonStyle EnforcedHashRocketStyle].freeze
+
def on_send(node)
return if double_splat?(node)
return unless node.arguments?
last_argument = node.last_argument