gecos-team/gecoscc-ui

View on GitHub
utils/tree-generator.js

Summary

Maintainability
C
7 hrs
Test Coverage

File tree-generator.js has 393 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*jslint vars: false, nomen: true, unparam: true */
/*global ObjectId, db, print */

// Copyright 2014 Junta de Andalucia
//
Severity: Minor
Found in utils/tree-generator.js - About 5 hrs to fix

    Function group has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        constructors.group = function (path) {
            if (counters.group >= MAX_GROUPS) { return; }
    
            var oid = new ObjectId(),
                max_nodes_to_add = random_int(MAX_NODES_PER_GROUP),
    Severity: Major
    Found in utils/tree-generator.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status