class RuboCop::Cop::Lint::LiteralInCondition
def check_for_literal(node)
def check_for_literal(node) cond, = *node # if the cond node is literal we obviously have a problem if literal?(cond) add_offense(cond, :expression) else # alternatively we have to consider a logical node with a # literal argument check_node(cond) end end