class RuboCop::Cop::Style::IndentArray

def check_first_pair(first_pair, left_bracket)

def check_first_pair(first_pair, left_bracket)
  return if first_pair.nil?
  expr = first_pair.loc.expression
  return if expr.line == left_bracket.line
  base_column = left_bracket.source_line =~ /\S/
  expected_column = base_column + IndentationWidth::CORRECT_INDENTATION
  @column_delta = expected_column - expr.column
  return if @column_delta == 0
  msg = format('Use %d spaces for indentation in an array, relative ' \
               'to the start of the line where the left bracket is.',
               IndentationWidth::CORRECT_INDENTATION)
  add_offense(first_pair, :expression, msg)
end