opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function _fnBuildHead has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _fnBuildHead( oSettings )
    {
      var i, nTh, iLen, j, jLen;
      var iThs = $('th, td', oSettings.nTHead).length;
      var iCorrector = 0;
Severity: Major
Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix

    Function fnDestroy has 89 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        this.fnDestroy = function ( bRemove )
        {
          var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
          var nOrig = oSettings.nTableWrapper.parentNode;
          var nBody = oSettings.nTBody;
    Severity: Major
    Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix

      Function tree has 89 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function tree(d, i) {
            var nodes = hierarchy.call(this, d, i), root = nodes[0];
            function firstWalk(node, previousSibling) {
              var children = node.children, layout = node._tree;
              if (children && (n = children.length)) {
      Severity: Major
      Found in cabot/static/arachnys/js/d3.js - About 3 hrs to fix

        Function Toggle has 88 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Rickshaw.Graph.Behavior.Series.Toggle = function(args) {
        
          this.graph = args.graph;
          this.legend = args.legend;
        
        
        Severity: Major
        Found in cabot/static/arachnys/js/rickshaw.js - About 3 hrs to fix

          Function remove has 87 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              remove: function(node) {
                if (node.N) node.N.P = node.P;
                if (node.P) node.P.N = node.N;
                node.N = node.P = null;
                var parent = node.U, sibling, left = node.L, right = node.R, next, red;
          Severity: Major
          Found in cabot/static/arachnys/js/d3.js - About 3 hrs to fix

            Function Area has 87 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              Morris.Area = (function(_super) {
                var areaDefaults;
            
                __extends(Area, _super);
            
            
            Severity: Major
            Found in cabot/static/arachnys/js/morris.js - About 3 hrs to fix

              Function _refresh has 86 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _refresh: function() {
                      var maxHeight,
                          options = this.options,
                          heightStyle = options.heightStyle,
                          parent = this.element.parent(),
              Severity: Major
              Found in cabot/static/theme/js/jquery-ui.js - About 3 hrs to fix

                Function _extractTransform has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        extractTransform = R._extractTransform = function (el, tstr) {
                            if (tstr == null) {
                                return el._.transform;
                            }
                            tstr = Str(tstr).replace(/\.{3}|\u2026/g, el._.transform || E);
                Severity: Major
                Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

                  Function d3_geo_clip has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) {
                      return function(rotate, listener) {
                        var line = clipLine(listener), rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]);
                        var clip = {
                          point: point,
                  Severity: Major
                  Found in cabot/static/arachnys/js/d3.js - About 3 hrs to fix

                    Function trigger has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      trigger: function( event, data, elem, onlyHandlers ) {
                        var handle, ontype, cur,
                          bubbleType, special, tmp, i,
                          eventPath = [ elem || document ],
                          type = core_hasOwn.call( event, "type" ) ? event.type : event,
                    Severity: Major
                    Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 3 hrs to fix

                      Function _doKeyDown has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _doKeyDown: function(event) {
                              var onSelect, dateStr, sel,
                                  inst = $.datepicker._getInst(event.target),
                                  handled = true,
                                  isRTL = inst.dpDiv.is(".ui-datepicker-rtl");
                      Severity: Major
                      Found in cabot/static/theme/js/jquery-ui.js - About 3 hrs to fix

                        Function a2c has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {
                                    // for more information of where this math came from visit:
                                    // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
                                    var _120 = PI * 120 / 180,
                                        rad = PI / 180 * (+angle || 0),
                        Severity: Major
                        Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

                          Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function Animation( elem, properties, options ) {
                            var result,
                              stopped,
                              index = 0,
                              length = animationPrefilters.length,
                          Severity: Major
                          Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 3 hrs to fix

                            Function send has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    send: function( headers, complete ) {
                            
                                      // Get a new xhr
                                      var handle, i,
                                        xhr = s.xhr();
                            Severity: Major
                            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 3 hrs to fix

                              Function _keydown has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _keydown: function( event ) {
                                      /*jshint maxcomplexity:20*/
                                      var match, prev, character, skip, regex,
                                          preventDefault = true;
                              
                              
                              Severity: Major
                              Found in cabot/static/theme/js/jquery-ui.js - About 3 hrs to fix

                                Function DonutSegment has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  Morris.DonutSegment = (function(_super) {
                                
                                    __extends(DonutSegment, _super);
                                
                                    function DonutSegment(cx, cy, inner, outer, p0, p1, color, backgroundColor, index, raphael) {
                                Severity: Major
                                Found in cabot/static/arachnys/js/morris.js - About 3 hrs to fix

                                  Function data has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    d3_selectionPrototype.data = function(value, key) {
                                      var i = -1, n = this.length, group, node;
                                      if (!arguments.length) {
                                        value = new Array(n = (group = this[0]).length);
                                        while (++i < n) {
                                  Severity: Major
                                  Found in cabot/static/arachnys/js/d3.js - About 3 hrs to fix

                                    Function addGradientFill has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        addGradientFill = function (element, gradient) {
                                            var type = "linear",
                                                id = element.id + gradient,
                                                fx = .5, fy = .5,
                                                o = element.node,
                                    Severity: Major
                                    Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

                                      Function formatDate has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          formatDate: function (format, date, settings) {
                                              if (!date) {
                                                  return "";
                                              }
                                      
                                      
                                      Severity: Major
                                      Found in cabot/static/theme/js/jquery-ui.js - About 3 hrs to fix

                                        Function fnUpdate has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                              "fnUpdate": function ( oSettings, fnCallbackDraw )
                                              {
                                                if ( !oSettings.aanFeatures.p )
                                                {
                                                  return;
                                        Severity: Major
                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language