>HealthReport

HealthReport

Encapsulates the information about the state of a repo.

Inherits from:

Object

Private helpers

source

initialize

analyzed_paths

pods_by_error

pods_by_warning

add_message

sourceattribute reader

Signature

source #=> Source 

Returns

Source The source analyzed.

Source Files

lib/cocoapods-core/source/health_reporter.rb:141

spec/source/health_reporter_spec.rb

initialize

Signature

initialize(source) #=> HealthReport 

Parameters

Source @see

Source.

Returns

HealthReport A new instance of HealthReport

Source

145 def initialize(source)
146   @source = source
147   @analyzed_paths = []
148   @pods_by_error = {}
149   @pods_by_warning = {}
150 end

Source Files

lib/cocoapods-core/source/health_reporter.rb:145

spec/source/health_reporter_spec.rb

analyzed_pathsreadwrite attribute

Signature

analyzed_paths #=> Array<Pathname> 

Returns

Array The list of the analyzed paths.

Signature

analyzed_paths=(value) #=> Array<Pathname> 

Returns

Array The list of the analyzed paths.

Source Files

lib/cocoapods-core/source/health_reporter.rb:154

spec/source/health_reporter_spec.rb

pods_by_errorreadwrite attribute

Signature

pods_by_error #=> Hash{ String => Hash } 

Returns

Hash{ String => Hash }

The pods (the version grouped by name) grouped by an error message.

Signature

pods_by_error=(value) #=> Hash{ String => Hash } 

Returns

Hash{ String => Hash }

The pods (the version grouped by name) grouped by an error message.

Source Files

lib/cocoapods-core/source/health_reporter.rb:159

spec/source/health_reporter_spec.rb

pods_by_warningreadwrite attribute

Signature

pods_by_warning #=> Hash{ String => Hash } 

Returns

Hash{ String => Hash }

The pods (the version grouped by name) grouped by a warning message.

Signature

pods_by_warning=(value) #=> Hash{ String => Hash } 

Returns

Hash{ String => Hash }

The pods (the version grouped by name) grouped by a warning message.

Source Files

lib/cocoapods-core/source/health_reporter.rb:164

spec/source/health_reporter_spec.rb

add_message

Signature

add_message(type, message, spec_name, spec_version = nil) #=> void 

Parameters

Symbol type

The type of message. Either :error or :warning.

String message

The contents of the message.

String spec_name

The name of the Pod.

String spec_version

The version of the specification.

Returns

void

Source

183 def add_message(type, message, spec_name, spec_version = nil)
184   if type == :error
185     pods_by_error[message] ||= {}
186     pods_by_error[message][spec_name] ||= []
187     pods_by_error[message][spec_name] << spec_version
188   else
189     pods_by_warning[message] ||= {}
190     pods_by_warning[message][spec_name] ||= []
191     pods_by_warning[message][spec_name] << spec_version
192   end
193 end

Source Files

lib/cocoapods-core/source/health_reporter.rb:183

spec/source/health_reporter_spec.rb