class ERBLint::Linters::RubocopText

def cop_classes

def cop_classes
  selected_cops = ::RuboCop::Cop::Registry.all.select { |cop| cop.match?(@only_cops) }
  ::RuboCop::Cop::Registry.new(selected_cops)
end

def descendant_nodes(parser)

def descendant_nodes(parser)
  erb_nodes = []
  parser.ast.descendants(:text).each do |text_node|
    text_node.descendants(:erb).each do |erb_node|
      erb_nodes << erb_node
    end
  end
  erb_nodes
end