opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

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

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

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

      Avoid deeply nested control flow statements.
      Open

                              if (pj[0] == "C") {
                                  bez2 = [x2, y2].concat(pj.slice(1));
                                  x2 = bez2[6];
                                  y2 = bez2[7];
                              } else {
      Severity: Major
      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

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

              elproto.drag = function (onmove, onstart, onend, move_scope, start_scope, end_scope) {
          Severity: Minor
          Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

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

                    q2c = function (x1, y1, ax, ay, x2, y2) {
            Severity: Minor
            Found in cabot/static/arachnys/js/raphael.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

                Avoid deeply nested control flow statements.
                Open

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

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

                    function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {
                  Severity: Minor
                  Found in cabot/static/arachnys/js/d3.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

                                                  if (o._.arrows) {
                                                      "startString" in o._.arrows && addArrow(o, o._.arrows.startString);
                                                      "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 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

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

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

                                elproto.animateWith = function (el, anim, params, ms, easing, callback) {
                            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

                                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

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

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if (stop) {
                                                                    break;
                                                                }
                                    Severity: Major
                                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if (gradient) {
                                                                      stops = gradient.getElementsByTagName("stop");
                                                                      $(stops[stops.length - 1], {"stop-opacity": value});
                                                                  }
                                      Severity: Major
                                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                        for (var subkey in par) if (par[has](subkey)) {
                                                            params[subkey] = par[subkey];
                                                        }
                                        Severity: Major
                                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language