SOFTWARE-CLINIC/featurebook-api

View on GitHub
lib/dir-walker.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function findTree has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function findTree(startDir, filter, cb) {
  var root = {};
  var asyncOps = 0;
  var errored = false;

Severity: Minor
Found in lib/dir-walker.js - About 1 hr to fix

    Function search has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function search(parent, file) {
        parent.path = path.normalize(path.relative(startDir, file)).replace(/\\/g, '/');
        parent.name = path.basename(file);
    
        asyncOps++;
    Severity: Minor
    Found in lib/dir-walker.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status