mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Only treat .go files in ^vendor/ as generated
This commit is contained in:
@@ -286,7 +286,9 @@ module Linguist
|
||||
#
|
||||
# Returns true or false.
|
||||
def go_vendor?
|
||||
!!name.match(/vendor\//)
|
||||
return false unless extname == '.go'
|
||||
|
||||
!!name.match(/\Avendor\//)
|
||||
end
|
||||
|
||||
# Internal: Is the blob part of Godeps/,
|
||||
|
||||
Reference in New Issue
Block a user