class RuboCop::Cop::Layout::IndentHash

def check(hash_node, left_parenthesis)

def check(hash_node, left_parenthesis)
  return if ignored_node?(hash_node)
  left_brace = hash_node.loc.begin
  first_pair = hash_node.pairs.first
  if first_pair
    return if first_pair.source_range.line == left_brace.line
    if separator_style?(first_pair)
      check_based_on_longest_key(hash_node.children, left_brace,
                                 left_parenthesis)
    else
      check_first(first_pair, left_brace, left_parenthesis, 0)
    end
  end
  check_right_brace(hash_node.loc.end, left_brace, left_parenthesis)
end