renderMessages = function (messages, parentIndex) {

  /**
   * Get HTML (table row) describing a message.
   * @param {Object} message Message.
   * @returns {string} HTML (table row) describing a message.
   */
  return lodashMap(messages, message => {
    const lineNumber = message.line || 0;
    const columnNumber = message.column || 0;

    return messageTemplate({
      parentIndex,
      lineNumber,
      columnNumber,
      severityNumber: message.severity,
      severityName: message.severity === 1 ? 'Warning' : 'Error',
      message: message.message,
      ruleId: message.ruleId
    });
  }).join('\n');
}
Get HTML (table rows) describing the messages.
@param {Array} messages Messages.
@param {int} parentIndex Index of the parent HTML row.
@returns {string} HTML (table rows) describing the messages.