opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Consider simplifying this complex logical expression.
Open

                    if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
                        curElem = hook === "backgroundColor" ? elem.parentNode : elem;
                        while (
                            (backgroundColor === "" || backgroundColor === "transparent") &&
                            curElem && curElem.style
Severity: Major
Found in cabot/static/theme/js/jquery-ui.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if ( tab.hasClass( "ui-state-disabled" ) ||
                    // tab is already loading
                    tab.hasClass( "ui-tabs-loading" ) ||
                    // can't switch durning an animation
                    this.running ||
    Severity: Major
    Found in cabot/static/theme/js/jquery-ui.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                if ( nCell.nodeName.toUpperCase() == "TD" ||
                     nCell.nodeName.toUpperCase() == "TH" )
                {
                  /* Get the col and rowspan attributes from the DOM and sanitise them */
                  iColspan = nCell.getAttribute('colspan') * 1;
      Severity: Major
      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                if (o.textpath) {
                    var textpathStyle = o.textpath.style;
                    params.font && (textpathStyle.font = params.font);
                    params["font-family"] && (textpathStyle.fontFamily = '"' + params["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g, E) + '"');
                    params["font-size"] && (textpathStyle.fontSize = params["font-size"]);
        Severity: Major
        Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if (el.type != "text" || !(params[has]("text") || params[has]("font") || params[has]("font-size") || params[has]("x") || params[has]("y"))) {
                      return;
                  }
          Severity: Major
          Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                    } else if (g.doc.attachEvent) {
                        return function (obj, type, fn, element) {
                            var f = function (e) {
                                e = e || g.win.event;
                                var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,
            Severity: Major
            Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                      if (abs(x3 - x2) > ε || abs(y3 - y2) > ε) {
                        halfEdges.splice(iHalfEdge, 0, new d3_geom_voronoiHalfEdge(d3_geom_voronoiCreateBorderEdge(cell.site, end, abs(x3 - x0) < ε && y1 - y3 > ε ? {
                          x: x0,
                          y: abs(x2 - x0) < ε ? y2 : y1
                        } : abs(y3 - y1) < ε && x1 - x3 > ε ? {
              Severity: Major
              Found in cabot/static/arachnys/js/d3.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                                if (letters[i] == "\n") {
                                    shift = 0;
                                    curr = 0;
                                    notfirst = 0;
                                    shifty += lineHeight;
                Severity: Major
                Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                                      if (path1 && path2 && path1[i][0] == "M" && path2[i][0] != "M") {
                                          path2.splice(i, 0, ["M", a2.x, a2.y]);
                                          a1.bx = 0;
                                          a1.by = 0;
                                          a1.x = path1[i][1];
                  Severity: Major
                  Found in cabot/static/arachnys/js/raphael.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ((!(prevLabelMargin != null) || prevLabelMargin >= labelBox.x + labelBox.width || (prevAngleMargin != null) && prevAngleMargin >= labelBox.x) && labelBox.x >= 0 && (labelBox.x + labelBox.width) < this.el.width()) {
                              if (this.options.xLabelAngle !== 0) {
                                margin = 1.25 * this.options.gridTextSize / Math.sin(this.options.xLabelAngle * Math.PI / 180.0);
                                prevAngleMargin = labelBox.x - margin;
                              }
                    Severity: Major
                    Found in cabot/static/arachnys/js/morris.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if ((!(prevLabelMargin != null) || prevLabelMargin >= labelBox.x + labelBox.width || (prevAngleMargin != null) && prevAngleMargin >= labelBox.x) && labelBox.x >= 0 && (labelBox.x + labelBox.width) < _this.el.width()) {
                                if (_this.options.xLabelAngle !== 0) {
                                  margin = 1.25 * _this.options.gridTextSize / Math.sin(_this.options.xLabelAngle * Math.PI / 180.0);
                                  prevAngleMargin = labelBox.x - margin;
                                }
                      Severity: Major
                      Found in cabot/static/arachnys/js/morris.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                          if ( support.matchesSelector && documentIsHTML &&
                            ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                            ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                        
                            try {
                        Severity: Major
                        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                if ( matcher[ expando ] ) {
                                  // Find the next relative operator (if any) for proper handling
                                  j = ++i;
                                  for ( ; j < len; j++ ) {
                                    if ( Expr.relative[ tokens[j].type ] ) {
                          Severity: Major
                          Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                if ( s.crossDomain == null ) {
                                  parts = rurl.exec( s.url.toLowerCase() );
                                  s.crossDomain = !!( parts &&
                                    ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                                      ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
                            Severity: Major
                            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                if (typeof document !== "undefined" && !("classList" in document.createElement("a"))) {
                              
                                (function (view) {
                              
                                "use strict";
                              Severity: Major
                              Found in cabot/static/arachnys/js/rickshaw.js - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                if ( !jQuery.support.opacity ) {
                                  jQuery.cssHooks.opacity = {
                                    get: function( elem, computed ) {
                                      // IE uses filters for opacity
                                      return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
                                Severity: Major
                                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                    if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {
                                      return;
                                    }
                                  Severity: Major
                                  Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                          if (autoPlace) {
                                            var $parent = this.$element.parent()
                                    
                                            var orgPlacement = placement
                                            var docScroll    = document.documentElement.scrollTop || document.body.scrollTop
                                    Severity: Major
                                    Found in cabot/static/bootstrap/js/bootstrap.js - About 40 mins to fix

                                      Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              init: function (el, values, options, width, height) {
                                      Severity: Minor
                                      Found in cabot/static/theme/js/jquery.sparkline.min.js - About 35 mins to fix

                                        Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                init: function (el, values, options, width, height) {
                                        Severity: Minor
                                        Found in cabot/static/theme/js/jquery.sparkline.min.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language