markdown.js
function output(type) {
    var statstype = stats[type];
    return injectHeader(type) + lodash.map(statstype, function (ruleStats, ruleId) {
      return statsRowTemplate({
        ruleId: ruleId,
        ruleCount: ruleStats,
        visual: lodash.repeat('X', lodash.min([ruleStats, 20]))
      });
    }, '').join('');
  }
function output(type) {
    var statstype = stats[type];
    return injectHeader(type) + lodash.map(statstype, function (ruleStats, ruleId) {
      return statsRowTemplate({
        ruleId: ruleId,
        ruleCount: ruleStats,
        visual: lodash.repeat('X', lodash.min([ruleStats, 20]))
      });
    }, '').join('');
  }
function output ( type ) { var statstype = stats [ type ] ; return injectHeader ( type ) + lodash . map ( statstype , function ( ruleStats , ruleId ) { return statsRowTemplate ( { ruleId : ruleId , ruleCount : ruleStats , visual : lodash . repeat ( 'X' , lodash . min ( [ ruleStats , 20 ] ) ) } ) ; } , '' ) . join ( '' ) ; }
renders templates for each rule
@param {string} type error or warning
@returns {string} The formatted string, pluralized where necessary
renders templates for each rule