lib/dir-walker.js
Function findTree
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findTree(startDir, filter, cb) {
var root = {};
var asyncOps = 0;
var errored = false;
Function search
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function search(parent, file) {
parent.path = path.normalize(path.relative(startDir, file)).replace(/\\/g, '/');
parent.name = path.basename(file);
asyncOps++;