opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function _initSource has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _initSource: function() {
        var array, url,
            that = this;
        if ( $.isArray(this.options.source) ) {
            array = this.options.source;
Severity: Minor
Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

    Function keydown_checker has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        Chosen.prototype.keydown_checker = function(evt) {
          var stroke, _ref1;
    
          stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
          this.search_field_scale();
    Severity: Minor
    Found in cabot/static/theme/js/chosen.jquery.js - About 1 hr to fix

      Function _create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _create: function() {
              var selectees,
                  that = this;
      
              this.element.addClass("ui-selectable");
      Severity: Minor
      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

        Function puff has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        $.effects.effect.puff = function( o, done ) {
            var elem = $( this ),
                mode = $.effects.setMode( elem, o.mode || "hide" ),
                hide = mode === "hide",
                percent = parseInt( o.percent, 10 ) || 150,
        Severity: Minor
        Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

          Function _fnJsonString has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var _fnJsonString = (window.JSON) ? JSON.stringify : function( o )
              {
                /* Not an object or array */
                var sType = typeof o;
                if (sType !== "object" || o === null)
          Severity: Minor
          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

            Function values has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                values: function( index, newValue ) {
                    var vals,
                        newValues,
                        i;
            
            
            Severity: Minor
            Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

              Function transfer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              $.effects.effect.transfer = function( o, done ) {
                  var elem = $( this ),
                      target = $( o.to ),
                      targetFixed = target.css( "position" ) === "fixed",
                      body = $("body"),
              Severity: Minor
              Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                Function highlight has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                $.effects.effect.highlight = function( o, done ) {
                    var elem = $( this ),
                        props = [ "backgroundImage", "backgroundColor", "opacity" ],
                        mode = $.effects.setMode( elem, o.mode || "show" ),
                        animation = {
                Severity: Minor
                Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                  Function _create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _create: function() {
                          this.originalCss = {
                              display: this.element[0].style.display,
                              width: this.element[0].style.width,
                              minHeight: this.element[0].style.minHeight,
                  Severity: Minor
                  Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                    Function fnInit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          "fnInit": function ( oSettings, nPaging, fnCallbackDraw )
                          {
                            var oLang = oSettings.oLanguage.oPaginate;
                            var oClasses = oSettings.oClasses;
                            var fnClickHandler = function ( e ) {
                    Severity: Minor
                    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

                      Function glow has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          elproto.glow = function (glow) {
                              if (this.type == "text") {
                                  return null;
                              }
                              glow = glow || {};
                      Severity: Minor
                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                        Function _equaliseTransform has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                equaliseTransform = R._equaliseTransform = function (t1, t2) {
                                    t2 = Str(t2).replace(/\.{3}|\u2026/g, t1);
                                    t1 = R.parseTransformString(t1) || [];
                                    t2 = R.parseTransformString(t2) || [];
                                    var maxlength = mmax(t1.length, t2.length),
                        Severity: Minor
                        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                          Function d3_selection_on has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function d3_selection_on(type, listener, capture) {
                              var name = "__on" + type, i = type.indexOf("."), wrap = d3_selection_onListener;
                              if (i > 0) type = type.substring(0, i);
                              var filter = d3_selection_onFilters.get(type);
                              if (filter) type = filter, wrap = d3_selection_onFilter;
                          Severity: Minor
                          Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                            Function apportion has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  function apportion(node, previousSibling, ancestor) {
                                    if (previousSibling) {
                                      var vip = node, vop = node, vim = previousSibling, vom = node.parent.children[0], sip = vip._tree.mod, sop = vop._tree.mod, sim = vim._tree.mod, som = vom._tree.mod, shift;
                                      while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) {
                                        vom = d3_layout_treeLeft(vom);
                            Severity: Minor
                            Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                              Function diagonal has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                d3.svg.diagonal = function() {
                                  var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection;
                                  function diagonal(d, i) {
                                    var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, {
                                      x: p0.x,
                              Severity: Minor
                              Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                Function d3_geo_centroidRingStart has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function d3_geo_centroidRingStart() {
                                    var λ00, φ00, x0, y0, z0;
                                    d3_geo_centroid.point = function(λ, φ) {
                                      λ00 = λ, φ00 = φ;
                                      d3_geo_centroid.point = nextPoint;
                                Severity: Minor
                                Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                  Function attr has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    d3_transitionPrototype.attr = function(nameNS, value) {
                                      if (arguments.length < 2) {
                                        for (value in nameNS) this.attr(value, nameNS[value]);
                                        return this;
                                      }
                                  Severity: Minor
                                  Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                    Function d3_geom_voronoiCloseCells has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function d3_geom_voronoiCloseCells(extent) {
                                        var x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], x2, y2, x3, y3, cells = d3_geom_voronoiCells, iCell = cells.length, cell, iHalfEdge, halfEdges, nHalfEdges, start, end;
                                        while (iCell--) {
                                          cell = cells[iCell];
                                          if (!cell || !cell.prepare()) continue;
                                    Severity: Minor
                                    Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                      Function gradients has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          Line.gradients = function(coords) {
                                            var coord, grad, i, nextCoord, prevCoord, _i, _len, _results;
                                            grad = function(a, b) {
                                              return (a.y - b.y) / (a.x - b.x);
                                            };
                                      Severity: Minor
                                      Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix

                                        Function position has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function position(row, u, rect, flush) {
                                              var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;
                                              if (u == rect.dx) {
                                                if (flush || v > rect.dy) v = rect.dy;
                                                while (++i < n) {
                                        Severity: Minor
                                        Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language