Class: Pod::Specification::Linter::Analyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-core/specification/linter/analyzer.rb

Instance Method Summary collapse

Constructor Details

#initialize(consumer, results) ⇒ Analyzer

Returns a new instance of Analyzer.



7
8
9
10
11
# File 'lib/cocoapods-core/specification/linter/analyzer.rb', line 7

def initialize(consumer, results)
  @consumer = consumer
  @results = results
  @results.consumer = @consumer
end

Instance Method Details

#analyzeResults

Analyzes the consumer adding a Result for any failed check to the #results object.

Returns:

  • (Results)

    the results of the analysis.



18
19
20
21
22
23
# File 'lib/cocoapods-core/specification/linter/analyzer.rb', line 18

def analyze
  check_attributes
  validate_file_patterns
  check_if_spec_is_empty
  results
end