code: 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('');
    }
docs: renders templates for each rule
  @param {string} type error or warning
  @returns {string} The formatted string, pluralized where necessary