Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude generated yarn.lock files #5681

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/linguist/generated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def generated?
poetry_lock? ||
esy_lock? ||
npm_shrinkwrap_or_package_lock? ||
yarn_lock? ||
generated_yarn_plugnplay? ||
godeps? ||
generated_by_zephir? ||
Expand Down Expand Up @@ -408,6 +409,13 @@ def npm_shrinkwrap_or_package_lock?
!!name.match(/npm-shrinkwrap\.json/) || !!name.match(/package-lock\.json/)
end

# Internal: Is the file a generated yarn.lock file?
#
# Returns true or false
def yarn_lock?
!!name.match(/yarn.lock/)
end

# Internal: Is the blob a generated Yarn Plug'n'Play?
#
# Returns true or false.
Expand Down