class RuboCop::Cop::RSpec::ScatteredLet
def check_let_declarations(node)
def check_let_declarations(node) let_found = false mix_found = false node.each_child_node do |child| if let?(child) add_offense(child, :expression) if mix_found let_found = true elsif let_found mix_found = true end end end