jquery/jquery

View on GitHub

Showing 155 of 155 total issues

Function boxModelAdjustment has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
Severity: Minor
Found in src/css.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    } else if ( match[ 2 ] ) {
                        push.apply( results, context.getElementsByTagName( selector ) );
                        return results;
    
                    // Class selector
    Severity: Major
    Found in src/selector.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                          if ( ( ofType ?
                                              node.nodeName.toLowerCase() === name :
                                              node.nodeType === 1 ) &&
                                              ++diff ) {
      
      
      Severity: Major
      Found in src/selector.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if ( !( unmatched[ i ] || setMatched[ i ] ) ) {
                                        setMatched[ i ] = pop.call( results );
                                    }
        Severity: Major
        Found in src/selector.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              while ( i-- ) {
                                  groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
                                      toSelector( groups[ i ] );
                              }
          Severity: Major
          Found in src/selector.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                if ( copyIsArray && !Array.isArray( src ) ) {
                                    clone = [];
                                } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
                                    clone = {};
                                } else {
            Severity: Major
            Found in src/core.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if ( matchedSelectors[ sel ] ) {
                                          matchedHandlers.push( handleObj );
                                      }
              Severity: Major
              Found in src/event.js - About 45 mins to fix

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

                    init: function( elem, options, prop, end, easing, unit ) {
                Severity: Minor
                Found in src/effects/Tween.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if ( attrs[ i ] ) {
                                              name = attrs[ i ].name;
                                              if ( name.indexOf( "data-" ) === 0 ) {
                                                  name = camelCase( name.slice( 5 ) );
                                                  dataAttr( elem, name, data[ name ] );
                  Severity: Major
                  Found in src/data.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 src/ajax.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
                                                  cur = cur.replace( " " + clazz + " ", " " );
                                              }
                      Severity: Major
                      Found in src/attributes/classes.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if ( !selector ) {
                                                push.apply( results, seed );
                                                return results;
                                            }
                        Severity: Major
                        Found in src/selector.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if ( matchedSelectors[ sel ] === undefined ) {
                                                      matchedSelectors[ sel ] = handleObj.needsContext ?
                                                          jQuery( sel, this ).index( cur ) > -1 :
                                                          jQuery.find( sel, this, null, [ cur ] ).length;
                                                  }
                          Severity: Major
                          Found in src/event.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 src/selector.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if ( newContext !== context || !support.scope ) {
                              
                                                      // Capture the context ID, setting it first if necessary
                                                      if ( ( nid = context.getAttribute( "id" ) ) ) {
                                                          nid = jQuery.escapeSelector( nid );
                              Severity: Major
                              Found in src/selector.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

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

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if ( restoreDisplay == null ) {
                                                          display = style.display;
                                                          restoreDisplay = display === "none" ? "" : display;
                                                      }
                                  Severity: Major
                                  Found in src/effects.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                                cur += clazz + " ";
                                                            }
                                    Severity: Major
                                    Found in src/attributes/classes.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {
                                                                      return true;
                                                                  }
                                      Severity: Major
                                      Found in src/selector.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ( Expr.relative[ tokens[ j ].type ] ) {
                                                                break;
                                                            }
                                        Severity: Major
                                        Found in src/selector.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language