class RuboCop::Cop::Layout::SpaceBeforeBrackets

Checks for space between the name of a receiver and a left brackets.

@example

# bad
collection [index_or_key]

# good
collection[index_or_key]