lib/formatter.js
function(item) {
  // Drop newline symbol in error string
  item.msg = (Array.isArray(item.msg) ? item.msg.join(' ') : item.msg).replace('\n', '');
  // Using zero instead of undefined
  item.column = (item.column === undefined) ? 0 : item.column;
  // Drop `PUG:LINT_` prefix in error code
  item.code = chalk.grey(item.code.replace(/(PUG:|LINT_)/g, ''));
  // Formatting output
  var position = chalk.grey(item.line + ':' + item.column);
  return ['', position, chalk.red('error'), item.msg, item.code];
}
function(item) {
  // Drop newline symbol in error string
  item.msg = (Array.isArray(item.msg) ? item.msg.join(' ') : item.msg).replace('\n', '');
  // Using zero instead of undefined
  item.column = (item.column === undefined) ? 0 : item.column;
  // Drop `PUG:LINT_` prefix in error code
  item.code = chalk.grey(item.code.replace(/(PUG:|LINT_)/g, ''));
  // Formatting output
  var position = chalk.grey(item.line + ':' + item.column);
  return ['', position, chalk.red('error'), item.msg, item.code];
}
function ( item ) { // Drop newline symbol in error string item . msg = ( Array . isArray ( item . msg ) ? item . msg . join ( ' ' ) : item . msg ) . replace ( '\n' , '' ) ; // Using zero instead of undefined item . column = ( item . column === undefined ) ? 0 : item . column ; // Drop `PUG:LINT_` prefix in error code item . code = chalk . grey ( item . code . replace ( / (PUG:|LINT_) / g , '' ) ) ; // Formatting output var position = chalk . grey ( item . line + ':' + item . column ) ; return [ '' , position , chalk . red ( 'error' ) , item . msg , item . code ] ; }
Formatting string for the table

@param {Object} item
Formatting string for the table