def generated_net_docfile?
      return false unless extname.downcase == ".xml"
      return false unless lines.count > 3

      # .NET Docfiles always open with <doc> and their first tag is an
      # <assembly> tag
      return lines[1].include?("<doc>") &&
        lines[2].include?("<assembly>") &&
        lines[-2].include?("</doc>")
    end
def generated_net_docfile?
      return false unless extname.downcase == ".xml"
      return false unless lines.count > 3

      # .NET Docfiles always open with <doc> and their first tag is an
      # <assembly> tag
      return lines[1].include?("<doc>") &&
        lines[2].include?("<assembly>") &&
        lines[-2].include?("</doc>")
    end
Internal: Is this a generated documentation file for a .NET assembly?

 .NET developers often check in the XML Intellisense file along with an
 assembly - however, these don't have a special extension, so we have to
 dig into the contents to determine if it's a docfile. Luckily, these files
 are extremely structured, so recognizing them is easy.

 Returns true or false