Add Carthage/Build to generated list so it doesn't show in PR diffs (#3920)

Equivalent to #3865, but for Carthage.
This commit is contained in:
NachoSoto
2017-11-29 06:26:23 -08:00
committed by Colin Seymour
parent 38901d51d2
commit 4f46155c05
3 changed files with 23 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ module Linguist
def generated?
xcode_file? ||
cocoapods? ||
carthage_build? ||
generated_net_designer_file? ||
generated_net_specflow_feature_file? ||
composer_lock? ||
@@ -103,6 +104,13 @@ module Linguist
!!name.match(/(^Pods|\/Pods)\//)
end
# Internal: Is the blob part of Carthage/Build/, which contains dependencies not meant for humans in pull requests.
#
# Returns true or false.
def carthage_build?
!!name.match(/(^|\/)Carthage\/Build\//)
end
# Internal: Is the blob minified files?
#
# Consider a file minified if the average line length is