tunnckoCore/stream-copy-dir

View on GitHub

Showing 1 of 1 total issue

Function streamCopyDir has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function streamCopyDir (src, dest, plugin) {
  var app = new utils.dir.CreateReaddirStream()
  return app.createReaddirStream(src)
    .pipe(utils.through2.obj(function (file, enc, cb) {
      fs.stat(file.path, function (err, stats) {
Severity: Minor
Found in index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language