Skip to content

Commit

Permalink
Manually fix the remaining offense after auto-correction
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas054 authored and bbatsov committed Jun 23, 2021
1 parent 9a3b91e commit 0741555
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/rubocop/cop/layout/hash_alignment.rb
Expand Up @@ -180,14 +180,15 @@ class HashAlignment < Base
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)
Expand Down

0 comments on commit 0741555

Please sign in to comment.