opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Avoid deeply nested control flow statements.
Open

          for ( conv2 in converters ) {

            // If conv2 outputs current
            tmp = conv2.split( " " );
            if ( tmp[ 1 ] === current ) {
Severity: Major
Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

            } else if ( copy !== undefined ) {
              target[ name ] = copy;
            }
    Severity: Major
    Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                  while ( j-- ) {
                    if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
                      elem.removeChild( tbody );
                    }
                  }
      Severity: Major
      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                          if ( xhr.readyState !== 4 ) {
                            xhr.abort();
                          }
        Severity: Major
        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                      for ( match in context ) {
                        // Properties of context are called as methods if possible
                        if ( jQuery.isFunction( this[ match ] ) ) {
                          this[ match ]( context[ match ] );
          
          
          Severity: Major
          Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                      if ( (seed = find(
                        token.matches[0].replace( runescape, funescape ),
                        rsibling.test( tokens[0].type ) && context.parentNode || context
                      )) ) {
            
            
            Severity: Major
            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          if ( matches[ sel ] === undefined ) {
                            matches[ sel ] = handleObj.needsContext ?
                              jQuery( sel, this ).index( cur ) >= 0 :
                              jQuery.find( sel, this, null, [ cur ] ).length;
                          }
              Severity: Major
              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                          if ( conv && s[ "throws" ] ) {
                            response = conv( response );
                          } else {
                            try {
                              response = conv( response );
                Severity: Major
                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                    if ( xhrOnUnloadAbort ) {
                                      delete xhrCallbacks[ handle ];
                                    }
                  Severity: Major
                  Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                              if ( copyIsArray ) {
                                copyIsArray = false;
                                clone = src && jQuery.isArray(src) ? src : [];
                    
                              } else {
                    Severity: Major
                    Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                                  contains( context, elem ) && elem.id === m ) {
                                  results.push( elem );
                                  return results;
                                }
                      Severity: Major
                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                      if ( cache[1] === true ) {
                                        return true;
                                      }
                        Severity: Major
                        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      if ( name.indexOf("data-") === 0 ) {
                                        name = jQuery.camelCase( name.slice(5) );
                          
                                        dataAttr( elem, name, data[ name ] );
                                      }
                          Severity: Major
                          Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                        while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
                                          cur = cur.replace( " " + clazz + " ", " " );
                                        }
                            Severity: Major
                            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
                                                  return false;
                                                }
                              Severity: Major
                              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                            if ( rscriptType.test( node.type || "" ) &&
                                              !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
                                
                                              if ( node.src ) {
                                                // Hope ajax is available...
                                Severity: Major
                                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 45 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if (hlSpotsEnabled || options.get('spotColor') ||
                                                      (options.get('minSpotColor') || options.get('maxSpotColor') &&
                                                          (yvalues[yvallast] === this.miny || yvalues[yvallast] === this.maxy))) {
                                                      canvasWidth -= Math.ceil(spotRadius);
                                                  }
                                  Severity: Major
                                  Found in cabot/static/theme/js/jquery.sparkline.min.js - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                        if ( o.mode === "toggle" && mode === "show" ) {
                                            el.from = o.to || zero;
                                            el.to = o.from || original;
                                        } else {
                                            el.from = o.from || ( mode === "show" ? zero : original );
                                    Severity: Major
                                    Found in cabot/static/theme/js/jquery-ui.js - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                  if ( ( this.options.values.length === 2 && this.options.range === true ) &&
                                                          ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
                                                      ) {
                                                      newVal = otherVal;
                                                  }
                                      Severity: Major
                                      Found in cabot/static/theme/js/jquery-ui.js - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                    if(
                                                        inst.options.greedy &&
                                                        !inst.options.disabled &&
                                                        inst.options.scope === draggable.options.scope &&
                                                        inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element)) &&
                                        Severity: Major
                                        Found in cabot/static/theme/js/jquery-ui.js - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language