tunnckoCore/stream-copy-dir

View on GitHub
index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status