class RuboCop::Cop::Layout::EndAlignment
def check_assignment(node, rhs)
def check_assignment(node, rhs) # If there are method calls chained to the right hand side of the # assignment, we let rhs be the receiver of those method calls before # we check if it's an if/unless/while/until. return unless (rhs = first_part_of_call_chain(rhs)) return unless rhs.conditional? return if rhs.if_type? && rhs.ternary? check_asgn_alignment(node, rhs) end