function table(name, emoji, violations) {
    if (violations.length === 0 || violations.every(function (violation) { return !violation.message; })) {
        return "";
    }
    return "\n<table>\n  <thead>\n    <tr>\n      <th width=\"50\"></th>\n      <th width=\"100%\" data-danger-table=\"true\">" + name + "</th>\n    </tr>\n  </thead>\n  <tbody>" + violations
        .map(function (v) {
        var message = Violation_1.isInline(v) ? "**" + v.file + "#L" + v.line + "** - " + v.message : v.message;
        return "<tr>\n      <td>:" + emoji + ":</td>\n      <td>\n\n  " + message + "\n  </td>\n    </tr>\n  ";
    })
        .join("\n") + "</tbody>\n</table>\n";
}
/**
 * Converts a set of violations into a HTML table
 *
 * @param {string} name User facing title of table
 * @param {string} emoji Emoji name to show next to each item
 * @param {Violation[]} violations for table
 * @returns {string} HTML
 */
Converts a set of violations into a HTML table
@param {string} name User facing title of table
@param {string} emoji Emoji name to show next to each item
@param {Violation[]} violations for table
@returns {string} HTML
Converts a set of violations into a HTML table @param { string } name User facing title of table @param { string } emoji Emoji name to show next to each item @param { Violation [] } violations for table @returns { string } HTML
function table(name, emoji, violations) {
    if (violations.length === 0 || violations.every(function (violation) { return !violation.message; })) {
        return "";
    }
    return "\n<table>\n  <thead>\n    <tr>\n      <th width=\"50\"></th>\n      <th width=\"100%\" data-danger-table=\"true\">" + name + "</th>\n    </tr>\n  </thead>\n  <tbody>" + violations
        .map(function (v) {
        var message = Violation_1.isInline(v) ? "**" + v.file + "#L" + v.line + "** - " + v.message : v.message;
        return "<tr>\n      <td>:" + emoji + ":</td>\n      <td>\n\n  " + message + "\n  </td>\n    </tr>\n  ";
    })
        .join("\n") + "</tbody>\n</table>\n";
}
function table ( name , emoji , violations ) { if ( violations . length === 0 || violations . every ( function ( violation ) { return ! violation . message ; } ) ) { return "" ; } return "\n<table>\n  <thead>\n    <tr>\n      <th width=\"50\"></th>\n      <th width=\"100%\" data-danger-table=\"true\">" + name + "</th>\n    </tr>\n  </thead>\n  <tbody>" + violations . map ( function ( v ) { var message = Violation_1 . isInline ( v ) ? "**" + v . file + "#L" + v . line + "** - " + v . message : v . message ; return "<tr>\n      <td>:" + emoji + ":</td>\n      <td>\n\n  " + message + "\n  </td>\n    </tr>\n  " ; } ) . join ( "\n" ) + "</tbody>\n</table>\n" ; }
Converts a set of violations into a HTML table
 @param {string} name User facing title of table
 @param {string} emoji Emoji name to show next to each item
 @param {Violation[]} violations for table
 @returns {string} HTML
Converts a set of violations into a HTML table @param { string } name User facing title of table @param { string } emoji Emoji name to show next to each item @param { Violation [] } violations for table @returns { string } HTML