Skip to content

Commit

Permalink
Revert "Revert "Remove yarn.lock from auto-generated files list (foll…
Browse files Browse the repository at this point in the history
…ow-up) (#4459)" (#4460)" (#4461)

This reverts commit 90c7bba.
  • Loading branch information
lildude authored Mar 13, 2019
1 parent 90c7bba commit d243439
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/linguist/generated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def generated?
generated_roxygen2? ||
generated_pkgdown? ||
generated_jison? ||
generated_yarn_lock? ||
generated_grpc_cpp? ||
generated_dart? ||
generated_perl_ppport_header? ||
Expand Down Expand Up @@ -540,15 +539,6 @@ def generated_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:
Expand Down

0 comments on commit d243439

Please sign in to comment.