docs: function getResultSeverity(messages) {
    if (!messages) {
      return 0;
    }
  
    return messages
      .map(it => it.severity)
      .reduce((maxSeverity, severity) => Math.max(maxSeverity, severity), 0);
  }