opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function addArrow has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var addArrow = function (o, value, isEnd) {
        var values = Str(value).toLowerCase().split("-"),
            se = isEnd ? "end" : "start",
            i = values.length,
            type = "classic",
Severity: Minor
Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

    Function status has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        elproto.status = function (anim, value) {
            var out = [],
                i = 0,
                len,
                e;
    Severity: Minor
    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

      Function findDotsAtSegment has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {
              var t1 = 1 - t,
                  t13 = pow(t1, 3),
                  t12 = pow(t1, 2),
                  t2 = t * t,
      Severity: Minor
      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

        Function getFont has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            paperproto.getFont = function (family, weight, style, stretch) {
                stretch = stretch || "normal";
                style = style || "normal";
                weight = +weight || {normal: 400, bold: 700, lighter: 300, bolder: 800}[weight] || 400;
                if (!R.fonts) {
        Severity: Minor
        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

          Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            render: function(args) {
          
              args = args || {};
          
              var graph = this.graph;
          Severity: Minor
          Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

            Function off has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              off: function( types, selector, fn ) {
                var handleObj, type;
                if ( types && types.preventDefault && types.handleObj ) {
                  // ( event )  dispatched jQuery.Event
                  handleObj = types.handleObj;
            Severity: Minor
            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

              Function * has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  "*": [function( prop, value ) {
                    var tween = this.createTween( prop, value ),
                      target = tween.cur(),
                      parts = rfxnum.exec( value ),
                      unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
              Severity: Minor
              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                Function offset has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                jQuery.fn.offset = function( options ) {
                  if ( arguments.length ) {
                    return options === undefined ?
                      this :
                      this.each(function( i ) {
                Severity: Minor
                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                              $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                                  if(that._trigger("stop", event) !== false) {
                                      that._clear();
                                  }
                  Severity: Major
                  Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ($.datepicker._datepickerShowing) {
                                switch (event.keyCode) {
                                    case 9: $.datepicker._hideDatepicker();
                                            handled = false;
                                            break; // hide on tab out
                    Severity: Major
                    Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                      Function _drawPieSlice has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              _drawPieSlice: function (shapeid, x, y, radius, startAngle, endAngle, lineColor, fillColor) {
                      Severity: Major
                      Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
                                        (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                    }
                        Severity: Major
                        Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                          Function _generateMonthYearHeader has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                      secondary, monthNames, monthNamesShort) {
                          Severity: Major
                          Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                            Function _drawPieSlice has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    _drawPieSlice: function (shapeid, x, y, radius, startAngle, endAngle, lineColor, fillColor) {
                            Severity: Major
                            Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if ( this.options.tolerance === "pointer" ||
                                          this.options.forcePointerForContainers ||
                                          (this.options.tolerance !== "pointer" && this.helperProportions[this.floating ? "width" : "height"] > item[this.floating ? "width" : "height"])
                                      ) {
                                          return isOverElement;
                              Severity: Major
                              Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                Function insertChild has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                      function insertChild(n, d, x, y, x1, y1, x2, y2) {
                                Severity: Major
                                Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                  Function curveDim has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {
                                  Severity: Major
                                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                    Function insert has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                          function insert(n, d, x, y, x1, y1, x2, y2) {
                                    Severity: Major
                                    Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if (!isInAnim) {
                                                  for (var attr in params) if (params[has](attr)) {
                                                      if (availableAnimAttrs[has](attr) || element.paper.customAttributes[has](attr)) {
                                                          from[attr] = element.attr(attr);
                                                          (from[attr] == null) && (from[attr] = availableAttrs[attr]);
                                      Severity: Major
                                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

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