diff --git a/lib/linguist/generated.rb b/lib/linguist/generated.rb index c9df92b0fc..4d81384c51 100644 --- a/lib/linguist/generated.rb +++ b/lib/linguist/generated.rb @@ -66,6 +66,7 @@ def generated? poetry_lock? || esy_lock? || npm_shrinkwrap_or_package_lock? || + yarn_lock? || generated_yarn_plugnplay? || godeps? || generated_by_zephir? || @@ -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.