opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function _fnGetTdNodes has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _fnGetTdNodes ( oSettings, iIndividualRow )
    {
      var anReturn = [];
      var iCorrector;
      var anTds, nTd;
Severity: Minor
Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

    Function _createWrapper has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _createWrapper: function() {
            this.uiDialog = $("<div>")
                .addClass( "ui-dialog ui-widget ui-widget-content ui-corner-all ui-front " +
                    this.options.dialogClass )
                .hide()
    Severity: Minor
    Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

      Function shake has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      $.effects.effect.shake = function( o, done ) {
      
          var el = $( this ),
              props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
              mode = $.effects.setMode( el, o.mode || "effect" ),
      Severity: Minor
      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

        Function pathBBox has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var pathDimensions = R.pathBBox = function (path) {
                var pth = paths(path);
                if (pth.bbox) {
                    return pth.bbox;
                }
        Severity: Minor
        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

          Function processPath has 42 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          processPath = function (path, d) {
                              var nx, ny;
                              if (!path) {
                                  return ["C", d.x, d.y, d.x, d.y, d.x, d.y];
                              }
          Severity: Minor
          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

            Function generatePaths has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Line.prototype.generatePaths = function() {
                  var c, coords, i, r, smooth;
                  return this.paths = (function() {
                    var _i, _ref, _ref1, _results;
                    _results = [];
            Severity: Minor
            Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix

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

                  force.start = function() {
                    var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;
                    for (i = 0; i < n; ++i) {
                      (o = nodes[i]).index = i;
                      o.weight = 0;
              Severity: Minor
              Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                        if (this.floating && horizontalDirection) {
                            return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
                        } else {
                            return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
                        }
                Severity: Critical
                Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if(!(/^(document|window|parent)$/).test(o.containment)) {
                              ce = $(o.containment)[0];
                              co = $(o.containment).offset();
                              over = ($(ce).css("overflow") !== "hidden");
                  
                  
                  Severity: Critical
                  Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
                                    $target.parents("#" + $.datepicker._mainDivId).length === 0 &&
                                    !$target.hasClass($.datepicker.markerClassName) &&
                                    !$target.closest("." + $.datepicker._triggerClass).length &&
                                    $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
                    Severity: Critical
                    Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if (rgb[6]) {
                                      values = rgb[6][split](commaSpaces);
                                      red = toFloat(values[0]);
                                      values[0].slice(-1) == "%" && (red *= 2.55);
                                      green = toFloat(values[1]);
                      Severity: Critical
                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if (rgb[5]) {
                                        values = rgb[5][split](commaSpaces);
                                        red = toFloat(values[0]);
                                        values[0].slice(-1) == "%" && (red *= 2.55);
                                        green = toFloat(values[1]);
                        Severity: Critical
                        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                  ( jQuery.support.htmlSerialize || !rnoshimcache.test( value )  ) &&
                                  ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                                  !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
                          
                          
                          Severity: Critical
                          Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                            Function hook has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            color.hook = function( hook ) {
                                var hooks = hook.split( " " );
                                each( hooks, function( i, hook ) {
                                    jQuery.cssHooks[ hook ] = {
                                        set: function( elem, value ) {
                            Severity: Minor
                            Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

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

                                      "fnUpdate": function ( oSettings, fnDraw ) {
                                          var iListLength = 5;
                                          var oPaging = oSettings.oInstance.fnPagingInfo();
                                          var an = oSettings.aanFeatures.p;
                                          var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
                              Severity: Minor
                              Found in cabot/static/theme/js/custom.js - About 1 hr to fix

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

                                    _eventHandler: function( event ) {
                                        var options = this.options,
                                            active = this.active,
                                            clicked = $( event.currentTarget ),
                                            clickedIsActive = clicked[ 0 ] === active[ 0 ],
                                Severity: Minor
                                Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                  Function _makeResizable has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _makeResizable: function() {
                                          var that = this,
                                              options = this.options,
                                              handles = options.resizable,
                                              // .ui-resizable has position: relative defined in the stylesheet
                                  Severity: Minor
                                  Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                    Function create has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        R._engine.create = function () {
                                            var con = R._getContainer.apply(0, arguments),
                                                container = con.container,
                                                height = con.height,
                                                s,
                                    Severity: Minor
                                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                      Function curveDim has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {
                                                  var a = (c2x - 2 * c1x + p1x) - (p2x - 2 * c2x + c1x),
                                                      b = 2 * (c1x - p1x) - 2 * (c2x - c1x),
                                                      c = p1x - c1x,
                                                      t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a,
                                      Severity: Minor
                                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                        Function _calc has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            Grid.prototype._calc = function() {
                                              var bottomOffsets, gridLine, h, i, w, yLabelWidths;
                                              w = this.el.width();
                                              h = this.el.height();
                                              if (this.elementWidth !== w || this.elementHeight !== h || this.dirty) {
                                        Severity: Minor
                                        Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language