opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Avoid deeply nested control flow statements.
Open

        if ( oSettings._iDisplayLength >= 0 )
        {
          var iPages = parseInt( (oSettings.fnRecordsDisplay()-1) / oSettings._iDisplayLength, 10 ) + 1;
          oSettings._iDisplayStart = (iPages-1) * oSettings._iDisplayLength;
        }
Severity: Major
Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                  if ( sValType !== '' )
                  {
                    sThisType = _fnDetectType( sValType );
                    if ( oCol.sType === null )
                    {
    Severity: Major
    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                    for ( k=0 ; k<iRowspan ; k++ )
                    {
                      aApplied[i+k][j+iColspan] = 1;
                    }
      Severity: Major
      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                      if ( nRow == oSettings.aoOpenRows[k].nParent )
                      {
                        anRows.push( oSettings.aoOpenRows[k].nTr );
                        break;
                      }
        Severity: Major
        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                      if ( cOption == aoFeatures[k].cFeature )
                      {
                        nTmp = aoFeatures[k].fnInit( oSettings );
                        if ( nTmp )
                        {
          Severity: Major
          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                          if ( oSettings.aoColumns[i].sWidthOrig === null )
                          {
                            iTotal += $(oNodes[iCorrector]).outerWidth();
                          }
                          else
            Severity: Major
            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 45 mins to fix

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

                  R._engine.image = function (vml, src, x, y, w, h) {
              Severity: Minor
              Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                        matrixproto.add = function (a, b, c, d, e, f) {
                Severity: Minor
                Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if (tlen == 2) {
                                              bb = bb || el.getBBox(1);
                                              m.rotate(t[1], bb.x + bb.width / 2, bb.y + bb.height / 2);
                                              deg += t[1];
                                          } else if (tlen == 4) {
                  Severity: Major
                  Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            for (key in to) if (to[has](key)) {
                                                init[key] = e.totalOrigin[key];
                                            }
                    Severity: Major
                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                          R.angle = function (x1, y1, x2, y2, x3, y3) {
                      Severity: Minor
                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                            function Matrix(a, b, c, d, e, f) {
                        Severity: Minor
                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                  setCoords = function (p, sx, sy, dx, dy, deg) {
                          Severity: Minor
                          Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                                R._engine.rect = function (vml, x, y, w, h, r) {
                            Severity: Minor
                            Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  switch (availableAnimAttrs[attr]) {
                                                      case nu:
                                                          diff[attr] = (to[attr] - from[attr]) / ms;
                                                          break;
                                                      case "colour":
                              Severity: Major
                              Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                            if ("opacity" in attrs || "fill-opacity" in attrs) {
                                                                var gradient = R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, E));
                                                                if (gradient) {
                                                                    var stops = gradient.getElementsByTagName("stop");
                                                                    $(stops[stops.length - 1], {"stop-opacity": ("opacity" in attrs ? attrs.opacity : 1) * ("fill-opacity" in attrs ? attrs["fill-opacity"] : 1)});
                                Severity: Major
                                Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if (justCount) {
                                                              res++;
                                                          } else {
                                                              res.push({
                                                                  x: is.x,
                                  Severity: Major
                                  Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        for (var k in path.k) if (path[has](k)) {
                                                            fontcopy.glyphs[glyph].k[k] = path.k[k];
                                                        }
                                    Severity: Major
                                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          for (key in e.n) if (e.n[has](key) && e.n[key].f) {
                                                              var funcs = e.n[key].f;
                                                              for (j = 0, jj = funcs.length; j < jj; j++) if (funcs[j] == f) {
                                                                  funcs.splice(j, 1);
                                                                  break;
                                      Severity: Major
                                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            for (key in e.n) if (e.n[has](key) && e.n[key].f) {
                                                                delete e.n[key].f;
                                                            }
                                        Severity: Major
                                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language