lib/rubocop/cop/layout/hash_alignment.rb in rubocop-1.17.0 vs lib/rubocop/cop/layout/hash_alignment.rb in rubocop-1.18.0

- old
+ new

@@ -178,17 +178,18 @@ class HashAlignment < Base include HashAlignmentStyles include RangeHelp extend AutoCorrector - MESSAGES = { KeyAlignment => 'Align the keys of a hash literal if ' \ - 'they span more than one line.', - SeparatorAlignment => 'Align the separators of a hash ' \ - 'literal if they span more than one line.', - TableAlignment => 'Align the keys and values of a hash ' \ - 'literal if they span more than one line.', - KeywordSplatAlignment => 'Align keyword splats with the ' \ - 'rest of the hash if it spans more than one line.' }.freeze + MESSAGES = { + KeyAlignment => 'Align the keys of a hash literal if they span more than one line.', + SeparatorAlignment => 'Align the separators of a hash literal if they span more than ' \ + 'one line.', + TableAlignment => 'Align the keys and values of a hash literal if they span more than ' \ + 'one line.', + KeywordSplatAlignment => 'Align keyword splats with the rest of the hash if it spans ' \ + 'more than one line.' + }.freeze def on_send(node) return if double_splat?(node) return unless node.arguments?