Showing 50 of 580 total issues
Function _request
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _request(sc, path, nsp, method, data, headers, resolve, reject) {
Avoid deeply nested control flow statements. Open
Open
if ( one ) {
query.limit(1);
}
Avoid deeply nested control flow statements. Open
Open
if ( one ) {
return Promise.resolve(model._createDocument(m[0]));
}
Avoid deeply nested control flow statements. Open
Open
if ( one ) {
debug("creating just one?", m[0]);
return model._createDocument(m[0]);
}
Avoid deeply nested control flow statements. Open
Open
if ( fn ) {
p = p.then(fn);
}
Avoid deeply nested control flow statements. Open
Open
if ( id._id ) {
id = id._id;
}
Avoid deeply nested control flow statements. Open
Open
if ( "link" !== rel.linkType ) {
if ( rel.in ) {
reverseCond = "out";
} else if ( rel.out ) {
reverseCond = "in";
Function genModel
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function genModel(file, remove, orientose, app, builders, parentSchema) {
Avoid deeply nested control flow statements. Open
Open
if ( fn ) {
p = p.then(fn);
}
Avoid deeply nested control flow statements. Open
Open
if ( one ) {
query.limit(1);
}