lib/cocoapods-bb-bin/native/push.rb
# Performs a full lint against the podspecs.
#
Performs a full lint against the podspecs.
Performs a full lint against the podspecs .
def validate_podspec_files
          UI.puts "\nbin Validating #{'spec'.pluralize(count)}".yellow
          podspec_files.each do |podspec|
            validator = Validator.new(podspec, @source_urls, [], @use_cocoapods_validator)
            validator.allow_warnings = @allow_warnings
            validator.use_frameworks = @use_frameworks
            validator.use_static_frameworks = @use_static_frameworks
            validator.use_modular_headers = @use_modular_headers
            validator.ignore_public_only_results = @private
            validator.swift_version = @swift_version
            validator.skip_import_validation = @skip_import_validation
            validator.skip_tests = @skip_tests
            begin
              validator.validate
            rescue => e
              raise Informative, "The `#{podspec}` specification does not validate." \
                                 "\n\n#{e.message}"
            end
            raise Informative, "The `#{podspec}` specification does not validate." unless validator.validated?
          end
        end
def validate_podspec_files UI . puts "\nbin Validating #{'spec'.pluralize(count)}" . yellow podspec_files . each do | podspec | validator = Validator . new ( podspec , @source_urls , [ ] , @use_cocoapods_validator ) validator . allow_warnings = @allow_warnings validator . use_frameworks = @use_frameworks validator . use_static_frameworks = @use_static_frameworks validator . use_modular_headers = @use_modular_headers validator . ignore_public_only_results = @private validator . swift_version = @swift_version validator . skip_import_validation = @skip_import_validation validator . skip_tests = @skip_tests begin validator . validate rescue => e raise Informative , "The `#{podspec}` specification does not validate." "\n\n#{e.message}" end raise Informative , "The `#{podspec}` specification does not validate." unless validator . validated? end end
Performs a full lint against the podspecs.
Performs a full lint against the podspecs .