yahoo/preceptor-core

View on GitHub
lib/utils.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function deepExtend has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var deepExtend = function (obj, objects, options) {
    options = options || {};
    objects.forEach(function (currentObject) {
        if (currentObject) {
            _.keys(currentObject).forEach(function (key) {
Severity: Minor
Found in lib/utils.js - About 1 hr to fix

Avoid deeply nested control flow statements.
Open

                            if (_.isArray(currentObject[key][i])) {
                                obj[key].push(deepExtend([], [currentObject[key][i]]));
                            } else if (_.isObject(currentObject[key][i])) {
                                obj[key].push(deepExtend({}, [currentObject[key][i]]));
                            } else {
Severity: Major
Found in lib/utils.js - About 45 mins to fix

There are no issues that match your filters.

Category
Status