recognize composer.lock as generated file

This commit is contained in:
Daniel Fahlke
2013-12-08 21:31:29 +01:00
parent c8eeda6c8a
commit 96084fa59a

View File

@@ -60,6 +60,7 @@ module Linguist
generated_net_designer_file? ||
generated_protocol_buffer? ||
generated_jni_header? ||
composer_lock? ||
node_modules?
end
@@ -204,5 +205,13 @@ module Linguist
def node_modules?
!!name.match(/node_modules\//)
end
# the php composer tool generates a look file to represent a specific dependency state.
# In general not meant for humans in pull requests.
#
# Returns true or false.
def composer_lock?
!!name.match(/composer.lock/)
end
end
end