lib/cocoapods-core/source/health_reporter.rb
# Checks the validity of the specification with the linter.
#
# @param  [String] name
#         The name of the Pod.
#
# @param  [Version] version
#         The version of the specification.
#
# @param  [Pathname] spec_path
#         The path of the specification to check.
#
# @return [Specification] The specification loaded by the linter.
# @return [Nil] If the specifications raised during evaluation.
#
Checks the validity of the specification with the linter.
Checks the validity of the specification with the linter .
def lint_spec(name, version, spec_path)
        linter = Specification::Linter.new(spec_path)
        linter.lint
        linter.results.each do |result|
          next if result.public_only?
          report.add_message(result.type, result.message, name, version)
        end
        linter.spec
      end
def lint_spec ( name , version , spec_path ) linter = Specification :: Linter . new ( spec_path ) linter . lint linter . results . each do | result | next if result . public_only? report . add_message ( result . type , result . message , name , version ) end linter . spec end
Checks the validity of the specification with the linter.
Checks the validity of the specification with the linter .
The specification loaded by the linter.
The specification loaded by the linter .
Specification
If the specifications raised during evaluation.
If the specifications raised during evaluation .
Nil
name
<not_specific>
version
<not_specific>
spec_path
<not_specific>
<not_specific>
spec_path The path of the specification to check.
spec_path The path of the specification to check .