opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function partition has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.layout.partition = function() {
    var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
    function position(node, x, dx, dy) {
      var children = node.children;
      node.x = x;
Severity: Minor
Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

    Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      dispatch: function( event ) {
    
        // Make a writable jQuery.Event from the native event object
        event = jQuery.event.fix( event );
    
    
    Severity: Minor
    Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

      Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
          var i = 0,
            length = elems.length,
            bulk = key == null;
      
      
      Severity: Minor
      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

        Function clone has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          clone: function( elem, dataAndEvents, deepDataAndEvents ) {
            var destElements, node, clone, i, srcElements,
              inPage = jQuery.contains( elem.ownerDocument, elem );
        
            if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
        Severity: Minor
        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

          Function ceil has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            this.ceil = function(time, unit) {
          
              var date, floor, year;
          
              if (unit.name == 'day') {
          Severity: Minor
          Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

            Function start has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                start: function() {
                    var element, p, co, ch, cw, width, height,
                        that = $(this).data("ui-resizable"),
                        o = that.options,
                        el = that.element,
            Severity: Minor
            Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

              Function simpledraw has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  $.fn.simpledraw = function (width, height, useExisting, interact) {
                      var target, mhandler;
                      if (useExisting && (target = this.data('_jqs_vcanvas'))) {
                          return target;
                      }
              Severity: Minor
              Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                Function fnAddData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    this.fnAddData = function( mData, bRedraw )
                    {
                      if ( mData.length === 0 )
                      {
                        return [];
                Severity: Minor
                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

                  Function _fnUpdateInfo has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function _fnUpdateInfo ( oSettings )
                      {
                        /* Show information about the table */
                        if ( !oSettings.oFeatures.bInfo || oSettings.aanFeatures.i.length === 0 )
                        {
                  Severity: Minor
                  Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

                    Function _eventHandler has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _eventHandler: function( event ) {
                            var options = this.options,
                                active = this.active,
                                anchor = $( event.currentTarget ),
                                tab = anchor.closest( "li" ),
                    Severity: Minor
                    Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                      Function _slide has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _slide: function( event, index, newVal ) {
                              var otherVal,
                                  newValues,
                                  allowed;
                      
                      
                      Severity: Minor
                      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                        Function _position has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                _position: function() {
                                    var position = this.options.position,
                                        myAt = [],
                                        offset = [ 0, 0 ],
                                        isVisible;
                        Severity: Minor
                        Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                          Function fnDeleteRow has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              this.fnDeleteRow = function( mTarget, fnCallBack, bRedraw )
                              {
                                /* Find settings from table node */
                                var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
                                var i, iLen, iAODataIndex;
                          Severity: Minor
                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

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

                                _create: function() {
                                    var that = this,
                                        options = this.options;
                            
                                    this.running = false;
                            Severity: Minor
                            Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                              Function solveCurveX has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function solveCurveX(x, epsilon) {
                                          var t0, t1, t2, x2, d2, i;
                                          for(t2 = x, i = 0; i < 8; i++) {
                                              x2 = sampleCurveX(t2) - x;
                                              if (abs(x2) < epsilon) {
                              Severity: Minor
                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                Function catmullRom2bezier has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function catmullRom2bezier(crp, z) {
                                        var d = [];
                                        for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {
                                            var p = [
                                                        {x: +crp[i - 2], y: +crp[i - 1]},
                                Severity: Minor
                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                  Function tuneText has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      tuneText = function (el, params) {
                                          if (el.type != "text" || !(params[has]("text") || params[has]("font") || params[has]("font-size") || params[has]("x") || params[has]("y"))) {
                                              return;
                                          }
                                          var a = el.attrs,
                                  Severity: Minor
                                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                    Function d3_rgb_parse has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function d3_rgb_parse(format, rgb, hsl) {
                                        var r = 0, g = 0, b = 0, m1, m2, name;
                                        m1 = /([a-z]+)\((.*)\)/i.exec(format);
                                        if (m1) {
                                          m2 = m1[2].split(",");
                                    Severity: Minor
                                    Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                      Function d3_geom_voronoiRemoveBeach has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function d3_geom_voronoiRemoveBeach(beach) {
                                          var circle = beach.circle, x = circle.x, y = circle.cy, vertex = {
                                            x: x,
                                            y: y
                                          }, previous = beach.P, next = beach.N, disappearing = [ beach ];
                                      Severity: Minor
                                      Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                        Function calcPoints has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            Line.prototype.calcPoints = function() {
                                              var row, y, _i, _len, _ref, _results;
                                              _ref = this.data;
                                              _results = [];
                                              for (_i = 0, _len = _ref.length; _i < _len; _i++) {
                                        Severity: Minor
                                        Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language