def lint

      data = nil

      if @log_file != nil
          if @is_fastlane_report
              require 'nokogiri'
              @doc = Nokogiri::XML(File.open(@log_file))
              data = @doc.at_xpath('//testcase[contains(@name, "pod_lib_lint")]/failure/@message').to_s
          else
              data = File.open(@log_file, 'r').read
          end
      else
        podliblint_command = "pod lib lint"
        podliblint_command += " #{@options}" if @options

        require 'cocoapods'
        data = `#{podliblint_command}`
      end

      # Looking for something like:
      # [!] MyProject did not pass validation, due to 1 error and 1 warning.
      lint_summary = data[/(?<=\[!\]\s).*(did not pass validation|Unable to find a podspec|specification does not validate).*/i]

      if lint_summary
          fail("Pod lib lint: #{lint_summary} 🚨")
          failures = data.scan(/(?<=ERROR\s\|\s).*/i)
          failures.each do |failure|
              fail("`" << ((failure.to_s.strip! || failure).to_s.gsub!(/`/,"") || failure).to_s << "`")
          end
      else
          message("Pod lib lint passed validation 🎊")
      end

      return failures
    end
def lint

      data = nil

      if @log_file != nil
          if @is_fastlane_report
              require 'nokogiri'
              @doc = Nokogiri::XML(File.open(@log_file))
              data = @doc.at_xpath('//testcase[contains(@name, "pod_lib_lint")]/failure/@message').to_s
          else
              data = File.open(@log_file, 'r').read
          end
      else
        podliblint_command = "pod lib lint"
        podliblint_command += " #{@options}" if @options

        require 'cocoapods'
        data = `#{podliblint_command}`
      end

      # Looking for something like:
      # [!] MyProject did not pass validation, due to 1 error and 1 warning.
      lint_summary = data[/(?<=\[!\]\s).*(did not pass validation|Unable to find a podspec|specification does not validate).*/i]

      if lint_summary
          fail("Pod lib lint: #{lint_summary} 🚨")
          failures = data.scan(/(?<=ERROR\s\|\s).*/i)
          failures.each do |failure|
              fail("`" << ((failure.to_s.strip! || failure).to_s.gsub!(/`/,"") || failure).to_s << "`")
          end
      else
          message("Pod lib lint passed validation 🎊")
      end

      return failures
    end
Parses and exposes eventual warnings, errors.
 @return   [failures]