class RuboCop::Cop::Style::TrailingUnderscoreVariable
def find_first_possible_offense(variables)
def find_first_possible_offense(variables) variables.reduce(nil) do |offense, variable| var, = *variable var, = *var if allow_named_underscore_variables break offense unless var == :_ else break offense unless var.to_s.start_with?(UNDERSCORE) end variable end end