Showing 7 of 7 total issues
Function getInfo
has 160 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dirInfo.getInfo = function getInfo(path, opts){
opts = opts || {};
var info={ origin:null };
return Promise.resolve().then(function(){
if(!path) { throw new Error('null path'); }
Avoid deeply nested control flow statements. Open
Open
if(resRemote.stdout.match(/local out of date/)) {
info.syncPending = true;
}
Avoid deeply nested control flow statements. Open
Open
for(var prop in o) { if (o.hasOwnProperty(prop)) { return true; } }
Avoid deeply nested control flow statements. Open
Open
if(hasUpdates(npmres)) {
info.isOutdated = true;
}
Avoid deeply nested control flow statements. Open
Open
if(info.isGitlab) {
if(resRemote.stdout.match(/fast-forwardable/)) {
info.pushPending = true;
}
}
Avoid deeply nested control flow statements. Open
Open
if(rst !== "") { info.pushPending = true; }
Avoid deeply nested control flow statements. Open
Open
if(fullPath.indexOf(Path.basename(path))==-1){
continue;
}