function parseMinScores()

in tools/lighthouse-audit.js [198:216]


function parseMinScores(raw) {
  const minScores = {};

  if (/^\d+$/.test(raw)) {
    raw = `all:${raw}`;
  }

  raw.split(',')
      .map(x => x.split(':'))
      .forEach(([ key, val ]) => minScores[key] = Number(val) / 100);

  if (minScores.hasOwnProperty('all')) {
    AUDIT_CATEGORIES.forEach(cat => minScores.hasOwnProperty(cat) ||
                                    (minScores[cat] = minScores.all));
    delete minScores.all;
  }

  return minScores;
}