def check_yard_coverage(stat_lines)
      if config['min_coverage_percentage']
        match = stat_lines.last.match(/^\s*([\d.]+)%\s+documented\s*$/)
        unless match
          return :warn
        end

        yard_coverage = match.captures[0].to_f
        if yard_coverage >= config['min_coverage_percentage'].to_f
          return :pass
        end

        yard_coverage
      end
    end
def check_yard_coverage(stat_lines)
      if config['min_coverage_percentage']
        match = stat_lines.last.match(/^\s*([\d.]+)%\s+documented\s*$/)
        unless match
          return :warn
        end

        yard_coverage = match.captures[0].to_f
        if yard_coverage >= config['min_coverage_percentage'].to_f
          return :pass
        end

        yard_coverage
      end
    end
Check the yard coverage

 Return a :pass if the coverage is enough, :warn if it couldn't be read,
 otherwise, it has been read successfully.