text: /*
   * Nodelint VIM syntastic reporter
   *
   * Reporter for working with the vim syntastic plugin
   * See http://gist.github.com/629349 for the vim script
   *
   * Released into the Public Domain by tav <tav@espians.com>
   * See the README.md for full credits of the awesome contributors!
   */
  
  /**
   * Module dependencies
   */
  var util = require('util');
  
  /**
   * Reporter info string
   */
  exports.info = "VIM syntastic reporter";
  
  /**
   * Report linting results to the command-line.
   *
   * @api public
   *
   * @param {Array} results
   */
  exports.report = function report(results) {
    var
      error_regexp = /^\s*(\S*(\s+\S+)*)\s*$/,
      i,
      len = results.length,
      str = '',
      file,
      error;
  
    if (len > 0) {
      for (i = 0; i < len; i += 1) {
        file = results[i].file;
        error = results[i].error;
  
        str += file  + 'line ' + error.line +
          ' column ' + error.character +
          ' Error: ' + error.reason + ' ' +
          (error.evidence || '').replace(error_regexp, "$1");
  
        str += (i === len - 1) ? '' : '\n';
      }
      util.puts(str);
    }
  };
  