lib/linguist/generated.rb in github-linguist-7.3.0 vs lib/linguist/generated.rb in github-linguist-7.3.1

- old
+ new

@@ -85,11 +85,10 @@ generated_jflex? || generated_grammarkit? || generated_roxygen2? || generated_pkgdown? || generated_jison? || - generated_yarn_lock? || generated_grpc_cpp? || generated_dart? || generated_perl_ppport_header? || generated_gamemakerstudio? end @@ -536,18 +535,9 @@ def generated_jison? return false unless extname == '.js' return false unless lines.count > 1 return lines[0].start_with?("/* parser generated by jison ") || lines[0].start_with?("/* generated by jison-lex ") - end - - # Internal: Is the blob a generated yarn lockfile? - # - # Returns true or false. - def generated_yarn_lock? - return false unless name.match(/yarn\.lock/) - return false unless lines.count > 0 - return lines[0].include?("# THIS IS AN AUTOGENERATED FILE") end # Internal: Is this a protobuf/grpc-generated C++ file? # # A generated file contains: