renderSummary = function (totalErrors, totalWarnings) {
  const totalProblems = totalErrors + totalWarnings;
  let renderedText = `${totalProblems} ${pluralize('problem', totalProblems)}`;

  if (totalProblems !== 0) {
    renderedText += ` (${totalErrors} ${pluralize('error', totalErrors)}, ${totalWarnings} ${pluralize('warning', totalWarnings)})`;
  }
  return renderedText;
}
Renders text along the template of x problems (x errors, x warnings)
@param {string} totalErrors Total errors
@param {string} totalWarnings Total warnings
@returns {string} The formatted string, pluralized where necessary