class RuboCop::Cop::Layout::SpaceInsideParens
def can_be_ignored?(token1, token2)
def can_be_ignored?(token1, token2) return true unless parens?(token1, token2) # If the second token is a comment, that means that a line break # follows, and that the rules for space inside don't apply. return true if token2.comment? # Ignore empty parens. # TODO: Could be configurable. return true if token1.left_parens? && token2.right_parens? end