cli.js
function runGlob(args, opts, cb) {
  var dotIdx = args.indexOf('.');
  if (dotIdx !== -1) {
    args.splice(dotIdx, 1);
  }
  glob(args, opts, function(err, globbed) {
    if (Array.isArray(globbed) && dotIdx !== -1) globbed.push('.');
    cb(err, globbed);
  });
}
function runGlob(args, opts, cb) {
  var dotIdx = args.indexOf('.');
  if (dotIdx !== -1) {
    args.splice(dotIdx, 1);
  }
  glob(args, opts, function(err, globbed) {
    if (Array.isArray(globbed) && dotIdx !== -1) globbed.push('.');
    cb(err, globbed);
  });
}
function runGlob ( args , opts , cb ) { var dotIdx = args . indexOf ( '.' ) ; if ( dotIdx !== - 1 ) { args . splice ( dotIdx , 1 ) ; } glob ( args , opts , function ( err , globbed ) { if ( Array . isArray ( globbed ) && dotIdx !== - 1 ) globbed . push ( '.' ) ; cb ( err , globbed ) ; } ) ; }
Wrapper around globbing function. Ignores '.' which has special meaning in jshint.
@param  {Array}    args File/glob list.
@param  {Object}   opts Glob options.
@param  {Function} cb   Callback.
Wrapper around globbing function . Ignores . which has special meaning in jshint .