estimancy/projestimate

View on GitHub

Showing 836 of 1,675 total issues

Avoid deeply nested control flow statements.
Open

                            if (filterMatched !== null) {
                                showRow = filterMatched;
                            } else {
                                if (wo.filter_startsWith) {
                                    showRow = false;
Severity: Major
Found in app/assets/javascripts/tablesorter.min.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if (data.filter) {
                                    data.cache = data.cacheArray[columnIndex];
                                    // check if column data should be from the cell or from parsed data
                                    if (wo.filter_useParsedData || data.parsed[columnIndex]) {
                                        data.exact = data.cache;
    Severity: Major
    Found in app/assets/javascripts/tablesorter.min.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                  for (string in fxn) {
                                      if (typeof string === 'string') {
                                          options += options === '' ?
                                              '<option value="">' + ($header.data('placeholder') || $header.attr('data-placeholder') || wo.filter_placeholder.select || '') + '</option>' : '';
                                          val = string;
      Severity: Major
      Found in app/assets/javascripts/tablesorter.min.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if ($.isArray(setFilters)) {
                                    // skip first (latest input) to maintain cursor position while typing
                                    if (skipFirst) { $column.slice(1); }
                                    if (i === c.columns) {
                                        // prevent data-column="all" from filling data-column="0,1" (etc)
        Severity: Major
        Found in app/assets/javascripts/tablesorter.min.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if (!searchFiltered) { indx = columnIndex; }
          Severity: Major
          Found in app/assets/javascripts/tablesorter.min.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if (cell) {
                                            arry.push( $.trim( cell.textContent || cell.innerText || $(cell).text() ) );
                                        }
            Severity: Major
            Found in app/assets/javascripts/tablesorter.min.js - About 45 mins to fix

              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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language