Method: Pod::Specification::Linter#lint

Defined in:
lib/cocoapods-core/specification/linter.rb

#lintBoolean

Lints the specification adding a Result for any failed check to the #results object.

Returns:

  • (Boolean)

    whether the specification passed validation.



46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/cocoapods-core/specification/linter.rb', line 46

def lint
  @results = Results.new
  if spec
    validate_root_name
    check_required_attributes
    check_requires_arc_attribute
    run_root_validation_hooks
    perform_all_specs_analysis
  else
    results.add_error('spec', "The specification defined in `#{file}` "\
      "could not be loaded.\n\n#{@raise_message}")
  end
  results.empty?
end