concord-consortium/rigse

View on GitHub
rails/app/assets/javascripts/modulejs.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function create has 98 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var create = function create() {
        // Module definitions.
        var definitions = {};

        // Module instances.
Severity: Major
Found in rails/app/assets/javascripts/modulejs.js - About 3 hrs to fix

    Function resolve has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            var resolve = function resolve(id, mixed, stack) {
                // check arguments
                assert(isString(id), 'id must be string: ' + id);
                var onlyDepIds = mixed === true;
                var resolvedInstances = (onlyDepIds ? undefined : mixed) || instances;
    Severity: Minor
    Found in rails/app/assets/javascripts/modulejs.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status