function page_summary(violations) {
  const flat = violations.flat();

  return /* html */ `
    <p>
      Page summary:
      ${count('violation', flat.reduce(to_total, 0))}
      of
      ${count('rule', get_rule_count(flat))}
      ${violations.length > 1 ? `in <strong>${violations.length}</strong> axe runs` : ''}
    </p>
    ${category(violations)}
  `;
}
/**
 * Create the page summary with the total
 * number of violations and rules.
 * @param {Object} violations
 * @returns {string}
 */
Create the page summary with the total
number of violations and rules.
@param {Object} violations
@returns {string}
Create the page summary with the total number of violations and rules . @param { Object } violations @returns { string }
function page_summary(violations) {
  const flat = violations.flat();
  return  `
    <p>
      Page summary:
      ${count('violation', flat.reduce(to_total, 0))}
      of
      ${count('rule', get_rule_count(flat))}
      ${violations.length > 1 ? `in <strong>${violations.length}</strong> axe runs` : ''}
    </p>
    ${category(violations)}
  `;
}
function page_summary ( violations ) { const flat = violations . flat ( ) ; return ` ${ count ( 'violation' , flat . reduce ( to_total , 0 ) ) } ${ count ( 'rule' , get_rule_count ( flat ) ) } ${ violations . length > 1 ? ` ${ violations . length } ` : '' } ${ category ( violations ) } ` ; }
Create the page summary with the total
 number of violations and rules.
Create the page summary with the total number of violations and rules .
/* html */