Showing 50 of 86 total issues
Function Mocha
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Mocha(options) {
options = options || {};
this.files = [];
this.options = options;
this.grep(options.grep);
Avoid deeply nested control flow statements. Open
Open
if (lines.length <= 4) {
eofNL(ret, i, current);
}
Function createPatch
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
createPatch: function(fileName, oldStr, newStr, oldHeader, newHeader) {
Avoid too many return
statements within this function. Open
Open
return basePath.components;
Avoid too many return
statements within this function. Open
Open
if (!match) return next();
Avoid too many return
statements within this function. Open
Open
return emptyRepresentation(value, type);
Avoid too many return
statements within this function. Open
Open
else return indent + line;
Avoid too many return
statements within this function. Open
Open
return ms + 'ms';
Avoid too many return
statements within this function. Open
Open
return next();
Avoid too many return
statements within this function. Open
Open
return matched.length == 0 && (!global.navigator || 'onerror' !== key);