Add Cocoapods to generated list so it doesn't show in PR diffs (#3865)

* Add Cocoapods to generated list so it doesn't show in PR diffs

* Removed Cocoapods from vendor.yml

* Enhance regex to match only Cocoapod's Pods folder

* Adds additional test cases for generated Pods folder
This commit is contained in:
Shai Mishali
2017-11-28 13:04:18 +02:00
committed by Colin Seymour
parent c5d1bb5370
commit ded0dc74e0
4 changed files with 22 additions and 6 deletions

View File

@@ -52,6 +52,7 @@ module Linguist
# Return true or false
def generated?
xcode_file? ||
cocoapods? ||
generated_net_designer_file? ||
generated_net_specflow_feature_file? ||
composer_lock? ||
@@ -95,6 +96,13 @@ module Linguist
['.nib', '.xcworkspacedata', '.xcuserstate'].include?(extname)
end
# Internal: Is the blob part of Pods/, which contains dependencies not meant for humans in pull requests.
#
# Returns true or false.
def cocoapods?
!!name.match(/(^Pods|\/Pods)\//)
end
# Internal: Is the blob minified files?
#
# Consider a file minified if the average line length is

View File

@@ -242,9 +242,6 @@
# Carthage
- ^Carthage/
# Cocoapods
- ^Pods/
# Sparkle
- (^|/)Sparkle/