estimancy/projestimate

View on GitHub

Showing 1,675 of 1,675 total issues

Avoid deeply nested control flow statements.
Open

                                for (indx = 1; indx < len; indx++) {
                                    // secondary, tertiary, etc sort column classes
                                    $cells.eq(sortList[indx][0]).addClass( css[indx] || css[last] );
                                }
Severity: Major
Found in app/assets/javascripts/tablesorter.min.js - About 45 mins to fix

    Function node has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            'node': function(elem, props, delta, map, getter, setter) {
    Severity: Minor
    Found in app/assets/javascripts/jit-2.0.1.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                      if ( $.inArray(i, columnIndex) > -1 ) {
                                          var txt;
                                          if (data.parsed[i]) {
                                              txt = data.cacheArray[i];
                                          } else {
      Severity: Major
      Found in app/assets/javascripts/tablesorter.min.js - About 45 mins to fix

        Function computeDim has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

         computeDim: function(tail, initElem, w, coord, comp, prop) {
        Severity: Minor
        Found in app/assets/javascripts/jit-2.0.1.js - About 45 mins to fix

          Function edge has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  'edge': function(elem, props, delta, mapKey, getter, setter) {
          Severity: Minor
          Found in app/assets/javascripts/jit-2.0.1.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if (noMatchSource || noMatchTarget)                                  
                                              continue inner; 
            Severity: Major
            Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                                  if (!jpc.isDetachAllowed(jpc) || !jpc.endpoints[idx].isDetachAllowed(jpc) || !jpc.suspendedEndpoint.isDetachAllowed(jpc) || !_jsPlumb.checkCondition("beforeDetach", jpc))
                                                      _doContinue = false;                                
              Severity: Major
              Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                if (endpoints[i] != endpoint) newEndpoints.push(endpoints[i]);
                Severity: Major
                Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                              if (targetContinuous) _updateAnchorList(anchorLists[targetId], o.theta2, -1, conn, true, sourceId, 1, true, o.a[1], targetId, connectionsToPaint, endpointsToPaint);
                  Severity: Major
                  Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                if (!o) {
                                                    o = calculateOrientation(sourceId, targetId, sd.o, td.o, conn.endpoints[0].anchor, conn.endpoints[1].anchor);
                                                    orientationCache[oKey] = o;
                                                    // this would be a performance enhancement, but the computed angles need to be clamped to
                                                    //the (-PI/2 -> PI/2) range in order for the sorting to work properly.
                    Severity: Major
                    Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                      Function calculateOrientation has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                                  calculateOrientation = function(sourceId, targetId, sd, td, sourceAnchor, targetAnchor) {
                      Severity: Minor
                      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                    if (connection.endpointsToDeleteOnDetach){
                                                        for (var i = 0; i < connection.endpointsToDeleteOnDetach.length; i++) {
                                                            var cde = connection.endpointsToDeleteOnDetach[i];
                                                            if (cde && cde.connections.length == 0) 
                                                                _jsPlumb.deleteEndpoint(cde);                            
                        Severity: Major
                        Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                                  if (params.draggable)
                                                                      jsPlumb.CurrentLibrary.initDraggable(self.element, dragOptions, true, _jsPlumb);
                          Severity: Major
                          Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                            Function _node has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                _node = function(name, d, atts, parent, _jsPlumb, deferToJsPlumbContainer) {
                            Severity: Minor
                            Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if (!this.isObject(c[i])) 
                                                          c[i] = {};
                              Severity: Major
                              Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if (idx == 0) {
                                                                        jpc.source = jpc.suspendedEndpoint.element;
                                                                        jpc.sourceId = jpc.suspendedEndpoint.elementId;
                                                                    } else {
                                                                        jpc.target = jpc.suspendedEndpoint.element;
                                Severity: Major
                                Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                                  Function _curryAnchor has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      var _curryAnchor = function(x, y, ox, oy, type, fnInit) {
                                  Severity: Minor
                                  Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if (otherEndpoint.connections[k] !== endpointConnections[i][0])                            
                                                                    jsPlumbUtil.addWithFunction(connectionsToPaint, otherEndpoint.connections[k], function(c) { return c.id == otherEndpoint.connections[k].id; });
                                    Severity: Major
                                    Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if (sourceContinuous) _updateAnchorList(anchorLists[sourceId], o.theta, 0, conn, false, targetId, 0, false, o.a[0], sourceId, connectionsToPaint, endpointsToPaint);
                                      Severity: Major
                                      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                for (var j in b[i])
                                                                    c[i][j] = b[i][j];
                                        Severity: Major
                                        Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language