docs: function (collector, options) {
  	var summaries = [];
  	var thresholds = options.thresholds;
  
  	var files = collector.files();
  	files.forEach(function(file) {
  		summaries.push(istanbul.utils.summarizeFileCoverage(
  				collector.fileCoverageFor(file)));
  	});
  
  	var finalSummary = istanbul.utils.mergeSummaryObjects.apply(null,
  			summaries);
  
  	grunt.util._.each(thresholds, function (threshold, metric) {
  		var actual = finalSummary[metric];
  		if(!actual) {
  			grunt.warn('unrecognized metric: ' + metric);
  		}
  		if(actual.pct < threshold) {
  			grunt.warn('expected ' + metric + ' coverage to be at least '
  					+ threshold + '% but was ' + actual.pct + '%');
  		}
  	});
  }